]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
IBSS: Do not enable HT with WEP or TKIP
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>
Fri, 6 Feb 2015 12:11:24 +0000 (13:11 +0100)
committerJouni Malinen <j@w1.fi>
Fri, 6 Feb 2015 19:43:35 +0000 (21:43 +0200)
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 <janusz.dziedzic@tieto.com>
wpa_supplicant/wpa_supplicant.c

index 6ad09a87517490f1d8d0ca2d97f89e76d0dbceb4..5f67e55df54bc60082d7546cb9882e4e9ac0b72f 100644 (file)
@@ -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) {