357faee4bfa2186d3e6fb44e8a468190bd283640
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 940-mwl8k_init_devices_synchronously.patch
1 --- a/drivers/net/wireless/marvell/mwl8k.c
2 +++ b/drivers/net/wireless/marvell/mwl8k.c
3 @@ -6264,6 +6264,8 @@ static int mwl8k_probe(struct pci_dev *p
4
5 priv->running_bsses = 0;
6
7 + wait_for_completion(&priv->firmware_loading_complete);
8 +
9 return rc;
10
11 err_stop_firmware:
12 @@ -6297,8 +6299,6 @@ static void mwl8k_remove(struct pci_dev
13 return;
14 priv = hw->priv;
15
16 - wait_for_completion(&priv->firmware_loading_complete);
17 -
18 if (priv->fw_state == FW_STATE_ERROR) {
19 mwl8k_hw_reset(priv);
20 goto unmap;