[PATCH] IBSS: don't enable HT when WEP configuration
Janusz Dziedzic
janusz.dziedzic
Fri Feb 6 04:11:24 PST 2015
We should not enable HT while WEP configured.
Without the patch and WEP configure we will get message:
Association request to the driver failed
Signed-off-by: Janusz Dziedzic <janusz.dziedzic at tieto.com>
Conflicts:
wpa_supplicant/wpa_supplicant.c
---
wpa_supplicant/wpa_supplicant.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 6ad09a8..50e6524 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -1674,6 +1674,12 @@ void ibss_mesh_setup_freq(struct wpa_supplicant *wpa_s,
!(wpa_s->drv_flags & WPA_DRIVER_FLAGS_HT_IBSS))
return;
+ if (wpa_s->group_cipher == WPA_CIPHER_WEP40 ||
+ wpa_s->group_cipher == WPA_CIPHER_WEP104) {
+ wpa_printf(MSG_DEBUG, "IBSS: WEP detected, disable HT\n");
+ return;
+ }
+
hw_mode = ieee80211_freq_to_chan(ssid->frequency, &channel);
for (i = 0; wpa_s->hw.modes && i < wpa_s->hw.num_modes; i++) {
if (wpa_s->hw.modes[i].mode == hw_mode) {
--
1.9.1
More information about the Hostap
mailing list