diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -780,6 +780,11 @@ static int mwl_probe(struct pci_dev *pdev, const struct pci_device_id *id) SET_IEEE80211_DEV(hw, priv->dev); rc = mwl_alloc_pci_resource(priv); + + /* verify that we can communicate with the hardware */ + if (!rc && !mwl_fwcmd_chk_adapter(priv)) + rc = -ENODEV; + if (rc) goto err_alloc_pci_resource; @@ -791,7 +796,6 @@ static int mwl_probe(struct pci_dev *pdev, const struct pci_device_id *id) #endif rc = mwl_init_firmware(priv, fw_name); - if (rc) { wiphy_err(hw->wiphy, "%s: fail to initialize firmware\n", MWL_DRV_NAME); |