diff options
Diffstat (limited to 'drivers/net/wireless/libertas/cmd.c')
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index bfdac58b5c06..092cd20e1227 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -381,15 +381,16 @@ static int wlan_cmd_802_11_snmp_mib(wlan_private * priv, | |||
381 | switch (cmd_oid) { | 381 | switch (cmd_oid) { |
382 | case OID_802_11_INFRASTRUCTURE_MODE: | 382 | case OID_802_11_INFRASTRUCTURE_MODE: |
383 | { | 383 | { |
384 | enum WLAN_802_11_NETWORK_INFRASTRUCTURE mode = | 384 | u8 mode = (u8) (size_t) pdata_buf; |
385 | (enum WLAN_802_11_NETWORK_INFRASTRUCTURE) pdata_buf; | ||
386 | pSNMPMIB->querytype = cpu_to_le16(cmd_act_set); | 385 | pSNMPMIB->querytype = cpu_to_le16(cmd_act_set); |
387 | pSNMPMIB->oid = cpu_to_le16((u16) desired_bsstype_i); | 386 | pSNMPMIB->oid = cpu_to_le16((u16) desired_bsstype_i); |
388 | pSNMPMIB->bufsize = sizeof(u8); | 387 | pSNMPMIB->bufsize = sizeof(u8); |
389 | if (mode == wlan802_11infrastructure) | 388 | if (mode == IW_MODE_ADHOC) { |
390 | ucTemp = SNMP_MIB_VALUE_INFRA; | ||
391 | else | ||
392 | ucTemp = SNMP_MIB_VALUE_ADHOC; | 389 | ucTemp = SNMP_MIB_VALUE_ADHOC; |
390 | } else { | ||
391 | /* Infra and Auto modes */ | ||
392 | ucTemp = SNMP_MIB_VALUE_INFRA; | ||
393 | } | ||
393 | 394 | ||
394 | memmove(pSNMPMIB->value, &ucTemp, sizeof(u8)); | 395 | memmove(pSNMPMIB->value, &ucTemp, sizeof(u8)); |
395 | 396 | ||