at76c50x-usb: update to latest mac80211 hw scan api
authorJason Andryuk <jandryuk@gmail.com>
Wed, 18 Feb 2009 20:40:57 +0000 (22:40 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Feb 2009 19:52:44 +0000 (14:52 -0500)
commit19e8bc7fa7df2f208554d1d06b9af129cd7f452a
treeb92c8119e7a26be4713382c06ff745711ba1fdbe
parent1264b951463a00efebe1bb596499aaad620ec8af
at76c50x-usb: update to latest mac80211 hw scan api

With the latest mac80211 stack, the driver needs to be updated for
cfg80211 scanning.  I based the changes off of modifications for
at76_usb found here:

http://johannes.sipsolutions.net/patches/old/all/2008-09-19-13:35/020-cfg80211-scan.patch

The trick was that max_signal also needs to be set to avoid a divide
by zero Oops.  I just guessed and used the value 100 for now.

kvalo: handpicked the change from two different patches

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Signed-off-by: Kalle Valo <kalle.valo@iki.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/at76c50x-usb.c