at76c50x: fix scan does not work with latest mac80211
authorAndrea Merello <andrea.merello@gmail.com>
Thu, 5 Jun 2014 14:10:12 +0000 (16:10 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 5 Jun 2014 18:15:08 +0000 (14:15 -0400)
commitc678de55361aa5b72b1aaa495380a395b8cc1bd2
tree0acdf58bca369ae1fc1a98389329950676891618
parent67be1e4f4b0a512f6af3a7db681ae9b62d31de5e
at76c50x: fix scan does not work with latest mac80211

since commit 3afc2167f60a327a2c1e1e2600ef209a3c2b75b7 scan in not
working anymore, due to mac80211 requires rx frequency status
information.

This patch makes the driver report this information.

While NOT scanning this is straightforward.
While scanning the firmware performs RF sweep and we cannot track
the actual tuning frequency, so this is guessed by parsing beacons
and probe responses.
This should be enough for ensuring functionality.

Thanks-to: Johannes Berg <johannes@sipsolutions.net> [ for suggestions and reviewing ]
Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/at76c50x-usb.c
drivers/net/wireless/at76c50x-usb.h