wl12xx: refactor fw init into a new function
authorEliad Peller <eliad@wizery.com>
Mon, 10 Oct 2011 08:12:49 +0000 (10:12 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 11 Oct 2011 12:04:21 +0000 (15:04 +0300)
commit1d095475f58680af17e4a0e8dd84269b3f08ce54
treecabebdc8c1b872d602d5dffa99cef9fa633a430b
parent170d0e6732c5fb1d4103ded3da95a5630c24e5dd
wl12xx: refactor fw init into a new function

The fw boot and initialization currently happens inside the
add_interface() callback. This is wrong, as add_interface is
called for each new vif. However, we due to some fw limitation
(we have to know the actual mac address on boot), we can't
completely move it into the start() callback.

Until the fw will be fixed, refactor the fw init into
a new function, and call it from add_interface()

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c