OSDN Git Service

ignore command that the wifi firmware does not support
authorJake Day <jake@ninebysix.com>
Fri, 17 Nov 2017 21:09:03 +0000 (16:09 -0500)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 10 Oct 2018 14:53:46 +0000 (22:53 +0800)
drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c

index 69e3b62..a25677b 100644 (file)
@@ -48,9 +48,13 @@ mwifiex_process_cmdresp_error(struct mwifiex_private *priv,
        struct host_cmd_ds_802_11_ps_mode_enh *pm;
        unsigned long flags;
 
-       mwifiex_dbg(adapter, ERROR,
-                   "CMD_RESP: cmd %#x error, result=%#x\n",
-                   resp->command, resp->result);
+       if (resp->command == 271 && resp->result == 2) {
+               // ignore this command as the firmware does not support it
+       } else {
+               mwifiex_dbg(adapter, ERROR,
+                               "CMD_RESP: cmd %#x error, result=%#x\n",
+                               resp->command, resp->result);
+       }
 
        if (adapter->curr_cmd->wait_q_enabled)
                adapter->cmd_wait_q.status = -1;