diff options
author | Jouni Malinen <j@w1.fi> | 2009-12-04 00:15:32 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-12-04 00:15:32 +0200 |
commit | 5cc4d64bf2e33d9935870d6c5290971b8ced8c03 (patch) | |
tree | 48ed428b6ba0ccbb9ba5753744e1c83d0a9951ec /wpa_supplicant/wpa_supplicant.c | |
parent | 85d3f273df0aae8dfe25ab12ea8f814f3f2bf146 (diff) | |
download | external_wpa_supplicant_8_ti-5cc4d64bf2e33d9935870d6c5290971b8ced8c03.zip external_wpa_supplicant_8_ti-5cc4d64bf2e33d9935870d6c5290971b8ced8c03.tar.gz external_wpa_supplicant_8_ti-5cc4d64bf2e33d9935870d6c5290971b8ced8c03.tar.bz2 |
nl80211: Add support for IBSS networks
Diffstat (limited to 'wpa_supplicant/wpa_supplicant.c')
-rw-r--r-- | wpa_supplicant/wpa_supplicant.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index dec408e..7decd7a 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -972,7 +972,7 @@ void wpa_supplicant_associate(struct wpa_supplicant *wpa_s, int assoc_failed = 0; struct wpa_ssid *old_ssid; - if (ssid->mode == 2) { + if (ssid->mode == IEEE80211_MODE_AP) { #ifdef CONFIG_AP if (!(wpa_s->drv_flags & WPA_DRIVER_FLAGS_AP)) { wpa_printf(MSG_INFO, "Driver does not support AP " @@ -987,7 +987,8 @@ void wpa_supplicant_associate(struct wpa_supplicant *wpa_s, return; } - if (wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME) { + if ((wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME) && + ssid->mode == IEEE80211_MODE_INFRA) { sme_authenticate(wpa_s, bss, ssid); return; } |