]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb946077a92537722379873acbd02de9b81d1133d
treeb92c8119e7a26be4713382c06ff745711ba1fdbe
parent9090f83b5111f063d92210102892441aa2ef2f0c
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