]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Process management frames only once per BSS
authorSimon Wunderlich <simon@open-mesh.com>
Mon, 10 Feb 2014 15:04:17 +0000 (16:04 +0100)
committerJouni Malinen <j@w1.fi>
Tue, 11 Mar 2014 17:07:25 +0000 (19:07 +0200)
commit1d91f504e43de9cc673be8fae73a443145f299c2
treedce5e2a4b90fc604bf9e38acaa88535a748d9ed2
parente070051207e28d0124758105db70fdc610fe9e16
hostapd: Process management frames only once per BSS

At least in nl80211, broadcast management frames like Probe Request
frames, may be processed multiple times per BSS if multi-BSS is active
and NL80211_CMD_FRAME event is used to deliver them. In the case of
Probe Request frames, hostapd will create multiple redundant Probe
Response frames which are problematic when many BSS are on one channel.

This problem is caused by driver_nl80211 generating an event for
wpa_supplicant_event() for each BSS, and hostapd_mgmt_rx() calls
ieee802_11_mgmt() for each BSS, too.

Fix this by processing broadcast events only for the BSS the driver
intended to. The behavior is not changed for drivers not setting a BSS.

Signed-hostap: Simon Wunderlich <simon@open-mesh.com>
src/ap/drv_callbacks.c
src/drivers/driver.h
src/drivers/driver_nl80211.c