]> git.baikalelectronics.ru Git - kernel.git/commit
wl12xx: don't modify the global supported band structures
authorLuciano Coelho <coelho@ti.com>
Tue, 11 Jan 2011 17:25:18 +0000 (18:25 +0100)
committerLuciano Coelho <coelho@ti.com>
Mon, 24 Jan 2011 20:11:52 +0000 (22:11 +0200)
commit10ec630405211fbdd3996a5656515d43f3b592da
treefe63b2dc13a245dff40ea2be40fa1619f38119f2
parente113caed3e330867dd3908d62f909def7c2a8cde
wl12xx: don't modify the global supported band structures

When 11a is not supported, we were modifying the global structure that
contains the bands supported by the driver.  This causes problems when
having more one wl12xx device in the same system because they all use
the same global.  This also causes problems when the wl12xx_sdio
module is removed and the wl12xx module remains.

Fix this problem by copying the band structure into the wl12xx
instance.

Reported-by: Arik Nemtsov <arik@wizery.com>
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c
drivers/net/wireless/wl12xx/wl12xx.h