mac80211: allow self-protected frame tx without sta
Useful for userspace mesh to authenticate and peer without a station entry, since both steps may fail anyway. Signed-off-by: Thomas Pedersen <thomas@cozybit.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
a33d402610
commit
ac49e1a896
@ -2827,7 +2827,8 @@ static int ieee80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|||||||
!rcu_access_pointer(sdata->bss->beacon))
|
!rcu_access_pointer(sdata->bss->beacon))
|
||||||
need_offchan = true;
|
need_offchan = true;
|
||||||
if (!ieee80211_is_action(mgmt->frame_control) ||
|
if (!ieee80211_is_action(mgmt->frame_control) ||
|
||||||
mgmt->u.action.category == WLAN_CATEGORY_PUBLIC)
|
mgmt->u.action.category == WLAN_CATEGORY_PUBLIC ||
|
||||||
|
mgmt->u.action.category == WLAN_CATEGORY_SELF_PROTECTED)
|
||||||
break;
|
break;
|
||||||
rcu_read_lock();
|
rcu_read_lock();
|
||||||
sta = sta_info_get(sdata, mgmt->da);
|
sta = sta_info_get(sdata, mgmt->da);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user