diff options
Diffstat (limited to 'drivers/net/wireless/libertas/ioctl.c')
-rw-r--r-- | drivers/net/wireless/libertas/ioctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/ioctl.c b/drivers/net/wireless/libertas/ioctl.c index 054c6578d6f7..636a0897150e 100644 --- a/drivers/net/wireless/libertas/ioctl.c +++ b/drivers/net/wireless/libertas/ioctl.c | |||
@@ -445,8 +445,8 @@ static int wlan_get_adhoc_status_ioctl(wlan_private * priv, struct iwreq *wrq) | |||
445 | 445 | ||
446 | memset(status, 0, sizeof(status)); | 446 | memset(status, 0, sizeof(status)); |
447 | 447 | ||
448 | switch (adapter->inframode) { | 448 | switch (adapter->mode) { |
449 | case wlan802_11ibss: | 449 | case IW_MODE_ADHOC: |
450 | if (adapter->connect_status == libertas_connected) { | 450 | if (adapter->connect_status == libertas_connected) { |
451 | if (adapter->adhoccreate) | 451 | if (adapter->adhoccreate) |
452 | memcpy(&status, "AdhocStarted", sizeof(status)); | 452 | memcpy(&status, "AdhocStarted", sizeof(status)); |
@@ -456,7 +456,7 @@ static int wlan_get_adhoc_status_ioctl(wlan_private * priv, struct iwreq *wrq) | |||
456 | memcpy(&status, "AdhocIdle", sizeof(status)); | 456 | memcpy(&status, "AdhocIdle", sizeof(status)); |
457 | } | 457 | } |
458 | break; | 458 | break; |
459 | case wlan802_11infrastructure: | 459 | case IW_MODE_INFRA: |
460 | memcpy(&status, "Inframode", sizeof(status)); | 460 | memcpy(&status, "Inframode", sizeof(status)); |
461 | break; | 461 | break; |
462 | default: | 462 | default: |