]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix CMD_FRAME for AP_VLAN
authorMichael Braun <michael-dev@fami-braun.de>
Mon, 3 Oct 2016 11:14:15 +0000 (13:14 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 12 Oct 2016 07:19:12 +0000 (09:19 +0200)
commit9039ac837e9d08f12c628be3c2ff56b7d57f3786
tree755b814d1a23748996105da5591960d5b8592d35
parentbb3657ef9fe58ae5f5491b0e6d81abcf9901e5b0
mac80211: fix CMD_FRAME for AP_VLAN

When using IEEE 802.11r FT OVER-DS roaming with AP_VLAN, hostapd needs to
send out a frame using CMD_FRAME for a station assigned to an AP_VLAN
interface.

Right now, the userspace needs to give the exact AP_VLAN interface index
for CMD_FRAME; hostapd does not do this. Additionally, userspace cannot
use GET_STATION to query the AP_VLAN ifidx, as while GET_STATION finds
stations assigned to AP_VLAN even if the AP iface is queried, it does not
return AP_VLAN ifidx (it returns the queried one).

This breaks IEEE 802.11r over_ds with vlans, as the reply frame does not
get out. This patch fixes this by using get_sta_bss for CMD_FRAME.

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/offchannel.c