Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Michael Braun and committed by
Johannes Berg
1d4de2e2 e2b5227f

+1 -1
+1 -1
net/mac80211/offchannel.c
··· 820 820 mgmt->u.action.category == WLAN_CATEGORY_SPECTRUM_MGMT) 821 821 break; 822 822 rcu_read_lock(); 823 - sta = sta_info_get(sdata, mgmt->da); 823 + sta = sta_info_get_bss(sdata, mgmt->da); 824 824 rcu_read_unlock(); 825 825 if (!sta) 826 826 return -ENOLINK;