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>
This commit is contained in:
parent
898a9790ad
commit
66d464067d
1 changed files with 2 additions and 1 deletions
|
@ -630,7 +630,8 @@ int hostapd_setup_wpa(struct hostapd_data *hapd)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_IEEE80211R
|
#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->l2 = l2_packet_init(hapd->conf->bridge[0] ?
|
||||||
hapd->conf->bridge :
|
hapd->conf->bridge :
|
||||||
hapd->conf->iface, NULL, ETH_P_RRB,
|
hapd->conf->iface, NULL, ETH_P_RRB,
|
||||||
|
|
Loading…
Reference in a new issue