cfg80211/mac80211: apply station uAPSD parameters selectively
Currently, when hostapd sets the station as authorized we also overwrite its uAPSD parameter. This obviously leads to buggy behaviour (later, with my patches that actually add uAPSD support). To fix this, only apply those parameters if they were actually set in nl80211, and to achieve that add a bitmap of things to apply. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
ffca287118
commit
3b9ce80ce9
@@ -714,8 +714,10 @@ static void sta_apply_parameters(struct ieee80211_local *local,
|
||||
}
|
||||
spin_unlock_irqrestore(&sta->flaglock, flags);
|
||||
|
||||
sta->sta.uapsd_queues = params->uapsd_queues;
|
||||
sta->sta.max_sp = params->max_sp;
|
||||
if (params->sta_modify_mask & STATION_PARAM_APPLY_UAPSD) {
|
||||
sta->sta.uapsd_queues = params->uapsd_queues;
|
||||
sta->sta.max_sp = params->max_sp;
|
||||
}
|
||||
|
||||
/*
|
||||
* cfg80211 validates this (1-2007) and allows setting the AID
|
||||
|
Reference in New Issue
Block a user