]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FT: Register RRB l2_packet only if FT-over-DS is enabled
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 16 Jul 2015 22:15:28 +0000 (01:15 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 17 Jul 2015 08:16:15 +0000 (11:16 +0300)
There is no need to waste resources for this packet socket if FT-over-DS
is disabled or when operating P2P GO or AP mode in wpa_supplicant.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/wpa_auth_glue.c

index 7cd0b6cf107ae6353ae871b02aced063a022763e..d65dc631fc0d606cf2a4d2f6ab26c853dae74484 100644 (file)
@@ -630,7 +630,8 @@ int hostapd_setup_wpa(struct hostapd_data *hapd)
        }
 
 #ifdef CONFIG_IEEE80211R
-       if (!hostapd_drv_none(hapd)) {
+       if (!hostapd_drv_none(hapd) && hapd->conf->ft_over_ds &&
+           wpa_key_mgmt_ft(hapd->conf->wpa_key_mgmt)) {
                hapd->l2 = l2_packet_init(hapd->conf->bridge[0] ?
                                          hapd->conf->bridge :
                                          hapd->conf->iface, NULL, ETH_P_RRB,