nl80211: Add WMM parameters while updating TDLS peer entry
The AP mode fix for removing NL80211_ATTR_STA_WME from
NL80211_CMD_SET_STATION did not consider the TDLS case and that resulted
in incorrectly removing WMM parameters from TDLS STA entry updates. Fix
this by considering the WPA_STA_TDLS_PEER flag similarly to the other
update parameters.
Fixes: 6d14b98fc6
("nl80211: Do not add WMM parameters when updating an existing STA entry")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
5a511924b1
commit
968520da8f
1 changed files with 3 additions and 2 deletions
|
@ -4700,8 +4700,9 @@ static int wpa_driver_nl80211_sta_add(void *priv,
|
|||
goto fail;
|
||||
#endif /* CONFIG_MESH */
|
||||
|
||||
if ((!params->set || FULL_AP_CLIENT_STATE_SUPP(drv->capa.flags)) &&
|
||||
(params->flags & WPA_STA_WMM)) {
|
||||
if ((!params->set || (params->flags & WPA_STA_TDLS_PEER) ||
|
||||
FULL_AP_CLIENT_STATE_SUPP(drv->capa.flags)) &&
|
||||
(params->flags & WPA_STA_WMM)) {
|
||||
struct nlattr *wme = nla_nest_start(msg, NL80211_ATTR_STA_WME);
|
||||
|
||||
wpa_printf(MSG_DEBUG, " * qosinfo=0x%x", params->qosinfo);
|
||||
|
|
Loading…
Add table
Reference in a new issue