diff options
author | Dedy Lansky <qca_dlansky@qca.qualcomm.com> | 2017-01-20 13:49:47 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2017-01-27 19:49:34 +0200 |
commit | 0d2370e939acca97b5e1abc1aedd47c5c9a5f500 (patch) | |
tree | f237af066b142a75238656183c2f36262dd7a0c8 /drivers/net/wireless/ath/wil6210/netdev.c | |
parent | af3db60a30331d3a37b534570bc52dd64a7c0e5d (diff) | |
download | linux-0d2370e939acca97b5e1abc1aedd47c5c9a5f500.tar.gz linux-0d2370e939acca97b5e1abc1aedd47c5c9a5f500.tar.bz2 linux-0d2370e939acca97b5e1abc1aedd47c5c9a5f500.zip |
wil6210: support new WMI-only FW capability
WMI_ONLY FW is used for testing in production. It cannot be used for
scan/connect, etc.
In case FW reports this capability, driver will not allow interface up.
Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/netdev.c')
-rw-r--r-- | drivers/net/wireless/ath/wil6210/netdev.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/wil6210/netdev.c b/drivers/net/wireless/ath/wil6210/netdev.c index d5df744a12b3..1843d98136d9 100644 --- a/drivers/net/wireless/ath/wil6210/netdev.c +++ b/drivers/net/wireless/ath/wil6210/netdev.c @@ -24,8 +24,9 @@ static int wil_open(struct net_device *ndev) wil_dbg_misc(wil, "open\n"); - if (debug_fw) { - wil_err(wil, "while in debug_fw mode\n"); + if (debug_fw || + test_bit(WMI_FW_CAPABILITY_WMI_ONLY, wil->fw_capabilities)) { + wil_err(wil, "while in debug_fw or wmi_only mode\n"); return -EINVAL; } |