summaryrefslogtreecommitdiff
path: root/net/wireless
diff options
context:
space:
mode:
authorAntonio Quartulli <a@unstable.cc>2018-06-14 04:43:06 +0300
committerJohannes Berg <johannes@sipsolutions.net>2018-06-15 14:38:40 +0300
commit446faa15c6e80620826edd659e63c6760137975a (patch)
tree9dfcf230e1b1997ff43a5e6174771df590d3d03d /net/wireless
parent2d4f545cb14fa2d9865124183f3100d46dc9b3b5 (diff)
downloadlinux-446faa15c6e80620826edd659e63c6760137975a.tar.xz
nl80211: report 4ADDR status with GET_INTERFACE
User space tools might be interested in knowing the current status of the 4ADDR property of an interface (when supported). Send the status along with the other attributes when replying to a GET_INTERFACE netlink query. Signed-off-by: Antonio Quartulli <a@unstable.cc> Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index d2677259e13e..7b21914ae18b 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -2757,7 +2757,8 @@ static int nl80211_send_iface(struct sk_buff *msg, u32 portid, u32 seq, int flag
nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, wdev_address(wdev)) ||
nla_put_u32(msg, NL80211_ATTR_GENERATION,
rdev->devlist_generation ^
- (cfg80211_rdev_list_generation << 2)))
+ (cfg80211_rdev_list_generation << 2)) ||
+ nla_put_u8(msg, NL80211_ATTR_4ADDR, wdev->use_4addr))
goto nla_put_failure;
if (rdev->ops->get_channel) {