Commit 91942230 authored by Lennert Buytenhek's avatar Lennert Buytenhek Committed by John W. Linville

mwl8k: bail out if there is no AP firmware image support for this chip

Signed-off-by: default avatarLennert Buytenhek <buytenh@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4113f751
...@@ -3361,10 +3361,17 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev, ...@@ -3361,10 +3361,17 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
mwl8k_release_firmware(priv); mwl8k_release_firmware(priv);
if (priv->ap_fw) if (priv->ap_fw) {
priv->rxd_ops = priv->device_info->ap_rxd_ops; priv->rxd_ops = priv->device_info->ap_rxd_ops;
else if (priv->rxd_ops == NULL) {
printk(KERN_ERR "%s: Driver does not have AP "
"firmware image support for this hardware\n",
wiphy_name(hw->wiphy));
goto err_stop_firmware;
}
} else {
priv->rxd_ops = &rxd_sta_ops; priv->rxd_ops = &rxd_sta_ops;
}
priv->sniffer_enabled = false; priv->sniffer_enabled = false;
priv->wmm_enabled = false; priv->wmm_enabled = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment