cfg80211: allow CFG80211_SIGNAL_TYPE_UNSPEC in station_info
authorJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Mar 2012 17:25:41 +0000 (13:25 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 26 Mar 2012 19:07:25 +0000 (15:07 -0400)
commit66266b3ab4871958ed6a1e43f502cadaf3becfc8
tree202d9da52387cd9ea0997d79c9e83bed15a9fab1
parente92109be7a6a04808c3ed586475ba1e5ea56ecbd
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>
include/net/cfg80211.h
net/wireless/nl80211.c