diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2011-10-13 10:30:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-10-14 14:48:23 -0400 |
commit | bb6e753e95a968fab0e366caace78fb2c08cc239 (patch) | |
tree | 23ae519a1a766cda1b6927fc0a230dfd0dbbe639 /net | |
parent | 59b66255bc7804970098533ce7c9bf6967f35f62 (diff) |
nl80211: Add sta_flags to the station info
Reuse the already existing struct nl80211_sta_flag_update to specify
both, a flag mask and the flag set itself. This means
nl80211_sta_flag_update is now used for setting station flags and also
for getting station flags.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/nl80211.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index edf655aeea00..48260c2d092a 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -2344,6 +2344,10 @@ static int nl80211_send_station(struct sk_buff *msg, u32 pid, u32 seq, | |||
2344 | 2344 | ||
2345 | nla_nest_end(msg, bss_param); | 2345 | nla_nest_end(msg, bss_param); |
2346 | } | 2346 | } |
2347 | if (sinfo->filled & STATION_INFO_STA_FLAGS) | ||
2348 | NLA_PUT(msg, NL80211_STA_INFO_STA_FLAGS, | ||
2349 | sizeof(struct nl80211_sta_flag_update), | ||
2350 | &sinfo->sta_flags); | ||
2347 | nla_nest_end(msg, sinfoattr); | 2351 | nla_nest_end(msg, sinfoattr); |
2348 | 2352 | ||
2349 | if (sinfo->filled & STATION_INFO_ASSOC_REQ_IES) | 2353 | if (sinfo->filled & STATION_INFO_ASSOC_REQ_IES) |