c809756f9f
When we start hostapd having Hotspot 2.0 configuration with interface already added to bridge interface, addition and deletion of new neighbor to bridge ip neighbor table fails. This is since 'bss->added_if_into_bridge' is not set which only allows 'drv->rtnl_sk' (nl_sock for NETLINK_ROUTE) allocation needed for bridge ip neighbor table. Add a new bit 'already_in_bridge' and set it when interface is already added to bridge by some external component. Check this bit in addition to 'bss->added_if_into_bridge' for 'drv->rtnl_sk' allocation done in i802_init(). Now 'drv->rtnl_sk' is closed in wpa_driver_nl80211_deinit() regardless of 'bss->added_if_into_bridge' since when we have 'bss->already_in_bridge' case too, this need to be removed. brctl show bridge name bridge id STP enabled interfaces br0 8000.8efdf006b050 no ap hostapd_cli raw STATUS-DRIVER Selected interface 'ap' ifindex=15 ifname=ap brname=br0 addr=8e:fd:f0:06:b0:50 freq=5180 beacon_set=1 already_in_bridge=1 .. Signed-off-by: Sathishkumar Muruganandam <murugana@codeaurora.org> |
||
---|---|---|
.. | ||
ap | ||
common | ||
crypto | ||
drivers | ||
eap_common | ||
eap_peer | ||
eap_server | ||
eapol_auth | ||
eapol_supp | ||
fst | ||
l2_packet | ||
p2p | ||
pae | ||
radius | ||
rsn_supp | ||
tls | ||
utils | ||
wps | ||
lib.rules | ||
Makefile |