diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-03-15 18:25:41 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-26 21:07:25 +0200 |
commit | 66266b3ab4871958ed6a1e43f502cadaf3becfc8 (patch) | |
tree | 202d9da52387cd9ea0997d79c9e83bed15a9fab1 /include/net/cfg80211.h | |
parent | iwlegacy: fix BSSID setting (diff) | |
download | linux-66266b3ab4871958ed6a1e43f502cadaf3becfc8.tar.xz linux-66266b3ab4871958ed6a1e43f502cadaf3becfc8.zip |
cfg80211: allow CFG80211_SIGNAL_TYPE_UNSPEC in station_info
The station_info struct had demanded dBm signal values, but the
cfg80211 wireless extensions implementation was also accepting
"unspecified" (i.e. RSSI) unit values while the nl80211 code was
completely unaware of them. Resolve this by formally allowing the
"unspecified" units while making nl80211 ignore them.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 69b7ad3a9925..5ccac722739f 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -619,8 +619,10 @@ struct sta_bss_parameters { * @llid: mesh local link id * @plid: mesh peer link id * @plink_state: mesh peer link state - * @signal: signal strength of last received packet in dBm - * @signal_avg: signal strength average in dBm + * @signal: the signal strength, type depends on the wiphy's signal_type + NOTE: For CFG80211_SIGNAL_TYPE_MBM, value is expressed in _dBm_. + * @signal_avg: avg signal strength, type depends on the wiphy's signal_type + NOTE: For CFG80211_SIGNAL_TYPE_MBM, value is expressed in _dBm_. * @txrate: current unicast bitrate from this station * @rxrate: current unicast bitrate to this station * @rx_packets: packets received from this station |