diff options
author | Chung-Hsien Hsu <stanley.hsu@cypress.com> | 2019-05-09 09:48:25 +0000 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2019-06-14 14:07:17 +0200 |
commit | f4d75993d85b6ddaeec0e72811debff7a96a7f0d (patch) | |
tree | 905349e48a80ab88f3740aa7295e6d3b7f49e6c9 /net/wireless | |
parent | 90cc4bd611903c77b29b94aa03ced6ad79229065 (diff) | |
download | linux-f4d75993d85b6ddaeec0e72811debff7a96a7f0d.tar.gz linux-f4d75993d85b6ddaeec0e72811debff7a96a7f0d.tar.bz2 linux-f4d75993d85b6ddaeec0e72811debff7a96a7f0d.zip |
nl80211: add NL80211_ATTR_IFINDEX to port authorized event
Add NL80211_ATTR_IFINDEX attribute to port authorized event to indicate
the operating interface of the device. Also put NL80211_ATTR_WIPHY
attribute in it to be consistent with the other MLME notifications.
Signed-off-by: Chung-Hsien Hsu <stanley.hsu@cypress.com>
Signed-off-by: Chi-Hsien Lin <chi-hsien.lin@cypress.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/nl80211.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 4892f307f51d..1c74ca377bd8 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -15071,7 +15071,9 @@ void nl80211_send_port_authorized(struct cfg80211_registered_device *rdev, return; } - if (nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, bssid)) + if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || + nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) || + nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, bssid)) goto nla_put_failure; genlmsg_end(msg, hdr); |