From: Janusz Dziedzic Date: Fri, 6 Feb 2015 12:11:24 +0000 (+0100) Subject: IBSS: Do not enable HT with WEP or TKIP X-Git-Tag: hostap_2_4~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9a9bc04b45d6eb0cc8aad91b15abccd80466274;p=thirdparty%2Fhostap.git IBSS: Do not enable HT with WEP or TKIP We should not enable HT if WEP or TKIP is configured. Without the patch and WEP configuration we will get message: Association request to the driver failed Signed-off-by: Janusz Dziedzic --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 6ad09a875..5f67e55df 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -1674,6 +1674,14 @@ 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_s->pairwise_cipher == WPA_CIPHER_TKIP) { + wpa_printf(MSG_DEBUG, + "IBSS: WEP/TKIP detected, do not try to enable HT"); + 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) {