wext: don't overwrite BSS frequency
authorDan Williams <dcbw@redhat.com>
Mon, 2 Jun 2008 17:47:09 +0000 (20:47 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 2 Jun 2008 17:47:09 +0000 (20:47 +0300)
commit2e5a7b49a0a52ce36033e4839aae90e638746b6a
tree61898caac0296b51f6036065f66cb457074579f0
parentd952d16df4a8ed6f0304251471e6bc924ebe6c86
wext: don't overwrite BSS frequency

mac80211 sends _both_ channel and frequency in it's scan results, with
frequency first and channel second (it's since been fixed to send
channel first and frequency second to work around this issue).  This
results in wpa_supplicant getting the right value when the frequency
comes, but overwriting the value with '0' when the channel comes because
wpa_supplicant can't handle 5GHz channel numbers.  So if a valid
previous SIOCGIWFREQ event came in, don't try to overwrite it.
src/drivers/driver_wext.c