mac80211: update to wireless-testing 2015-10-26
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 940-mwl8k_init_devices_synchronously.patch
1 --- a/drivers/net/wireless/mwl8k.c
2 +++ b/drivers/net/wireless/mwl8k.c
3 @@ -6262,6 +6262,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 @@ -6295,8 +6297,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;