diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2015-07-16 22:15:28 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-07-17 08:16:15 (GMT) |
commit | 66d464067d626cc64c5a543a8f91fe58727f4e5e (patch) | |
tree | eec61dfd4efab9d0de1a669c9c7ade6bf541e7aa /src/ap | |
parent | 898a9790ad8741e0991f25c8c215673a411086f2 (diff) | |
download | hostap-66d464067d626cc64c5a543a8f91fe58727f4e5e.zip hostap-66d464067d626cc64c5a543a8f91fe58727f4e5e.tar.gz hostap-66d464067d626cc64c5a543a8f91fe58727f4e5e.tar.bz2 |
FT: Register RRB l2_packet only if FT-over-DS is enabled
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>
Diffstat (limited to 'src/ap')
-rw-r--r-- | src/ap/wpa_auth_glue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c index 7cd0b6c..d65dc63 100644 --- a/src/ap/wpa_auth_glue.c +++ b/src/ap/wpa_auth_glue.c @@ -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, |