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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user