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)
commita8aaaf53d5f22f7f60ca5af26fc85c2940575c37
treefe63b2dc13a245dff40ea2be40fa1619f38119f2
parentfa287b8f291d79f080182eb353d1c1f4f374ae87
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