nl80211: report BSS status
When connected to a BSS, or joined to an IBSS, we'll want to know in userspace without using wireless extensions, so report the BSS status in the BSS list. Userspace can query the BSS list, display all the information and retrieve the station information as well. For example (from hwsim): $ iw dev wlan1 scan dump BSS 02:00:00:00:00:00 (on wlan1) -- associated freq: 2462 beacon interval: 100 capability: ESS ShortSlotTime (0x0401) signal: -50.00 dBm SSID: j Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0 DS Paramater set: channel 11 ERP: <no flags> Extended supported rates: 24.0 36.0 48.0 54.0 Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
4697fe4f78
commit
48ab905d1a
@@ -1260,6 +1260,7 @@ enum nl80211_channel_type {
|
||||
* in mBm (100 * dBm) (s32)
|
||||
* @NL80211_BSS_SIGNAL_UNSPEC: signal strength of the probe response/beacon
|
||||
* in unspecified units, scaled to 0..100 (u8)
|
||||
* @NL80211_BSS_STATUS: status, if this BSS is "used"
|
||||
* @__NL80211_BSS_AFTER_LAST: internal
|
||||
* @NL80211_BSS_MAX: highest BSS attribute
|
||||
*/
|
||||
@@ -1273,12 +1274,22 @@ enum nl80211_bss {
|
||||
NL80211_BSS_INFORMATION_ELEMENTS,
|
||||
NL80211_BSS_SIGNAL_MBM,
|
||||
NL80211_BSS_SIGNAL_UNSPEC,
|
||||
NL80211_BSS_STATUS,
|
||||
|
||||
/* keep last */
|
||||
__NL80211_BSS_AFTER_LAST,
|
||||
NL80211_BSS_MAX = __NL80211_BSS_AFTER_LAST - 1
|
||||
};
|
||||
|
||||
/**
|
||||
* enum nl80211_bss_status - BSS "status"
|
||||
*/
|
||||
enum nl80211_bss_status {
|
||||
NL80211_BSS_STATUS_AUTHENTICATED,
|
||||
NL80211_BSS_STATUS_ASSOCIATED,
|
||||
NL80211_BSS_STATUS_IBSS_JOINED,
|
||||
};
|
||||
|
||||
/**
|
||||
* enum nl80211_auth_type - AuthenticationType
|
||||
*
|
||||
|
Reference in New Issue
Block a user