Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
This commit is contained in:
@@ -4620,6 +4620,15 @@ int cfg80211_check_station_change(struct wiphy *wiphy,
|
||||
break;
|
||||
}
|
||||
|
||||
/*
|
||||
* Older kernel versions ignored this attribute entirely, so don't
|
||||
* reject attempts to update it but mark it as unused instead so the
|
||||
* driver won't look at the data.
|
||||
*/
|
||||
if (statype != CFG80211_STA_AP_CLIENT_UNASSOC &&
|
||||
statype != CFG80211_STA_TDLS_PEER_SETUP)
|
||||
params->opmode_notif_used = false;
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(cfg80211_check_station_change);
|
||||
@@ -4859,6 +4868,12 @@ static int nl80211_set_station(struct sk_buff *skb, struct genl_info *info)
|
||||
params.local_pm = pm;
|
||||
}
|
||||
|
||||
if (info->attrs[NL80211_ATTR_OPMODE_NOTIF]) {
|
||||
params.opmode_notif_used = true;
|
||||
params.opmode_notif =
|
||||
nla_get_u8(info->attrs[NL80211_ATTR_OPMODE_NOTIF]);
|
||||
}
|
||||
|
||||
/* Include parameters for TDLS peer (will check later) */
|
||||
err = nl80211_set_station_tdls(info, ¶ms);
|
||||
if (err)
|
||||
|
Reference in New Issue
Block a user