~vcs-imports/network-manager/trunk

Viewing all changes in revision 4479.

  • Committer: Dan Williams
  • Date: 2011-03-13 17:50:40 UTC
  • Revision ID: git-v1:32dedf4b83b736159b07eb73193258092318b5f0
wifi: fix scanned signal strength calculation for WEXT-based drivers

The new wpa_supplicant D-Bus interface only passes back the 'level'
of the scanned BSS, which with nl80211 drivers is almost always dBm,
which NM handled fine.  But WEXT-based drivers (ipw2x00, other older
ones, and some vendor drivers) use a mix of values for the 'level'
parameter, including the old WEXT 8-bit signed-value-in-unsigned-int
scheme.  Handle that.

Alternatively, we could have the supplicant expose the 'flags' value
from its internal BSS list over the bus.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: