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>
This commit is contained in:

committed by
John W. Linville

parent
59b66255bc
commit
bb6e753e95
@@ -2344,6 +2344,10 @@ static int nl80211_send_station(struct sk_buff *msg, u32 pid, u32 seq,
|
||||
|
||||
nla_nest_end(msg, bss_param);
|
||||
}
|
||||
if (sinfo->filled & STATION_INFO_STA_FLAGS)
|
||||
NLA_PUT(msg, NL80211_STA_INFO_STA_FLAGS,
|
||||
sizeof(struct nl80211_sta_flag_update),
|
||||
&sinfo->sta_flags);
|
||||
nla_nest_end(msg, sinfoattr);
|
||||
|
||||
if (sinfo->filled & STATION_INFO_ASSOC_REQ_IES)
|
||||
|
Reference in New Issue
Block a user