]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitef894b8cc5b5514ba80d808dc3d102f1a1cfdbb0
tree202d9da52387cd9ea0997d79c9e83bed15a9fab1
parent932a591744b7a9651a18ab843e6bb0117208c851
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