libertas_tf: don't defer firmware loading until start()
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 20 Feb 2019 10:58:39 +0000 (11:58 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 20 Feb 2019 17:55:54 +0000 (19:55 +0200)
commitbaa0280f08c71a3ce699a5213f16f45f6e0e592b
tree10687b360fa9e3019c17997e6e477a7c067cb797
parentbe9d0d3fe1392cefd710a96101250d76d42f632c
libertas_tf: don't defer firmware loading until start()

In order to be able to get a MAC address before we register the device
with ieee80211 we'll need to load the firmware way earlier.

There seems to be one problem with this: the device seems to start
with radio enabled and starts sending in frames right after the firmware
load finishes. Disable the radio as soon as possible.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Reviewed-by: Steve deRosier <derosier@cal-sierra.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/libertas_tf/if_usb.c
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h
drivers/net/wireless/marvell/libertas_tf/main.c