mwifiex: ignore calibration data failure
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 21 Oct 2016 15:15:48 +0000 (20:45 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 18 Nov 2016 11:11:38 +0000 (13:11 +0200)
Firmware may reject calibration data from host for certain OTP
settings. In that case, we should continue initialisation ignoring
the failure.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/sta_cmd.c

index 11ddfccf9bd53874c70857afc5509e48b1dcf454..0a54e2136128b53f1caac3b22909746539da72f1 100644 (file)
@@ -2245,19 +2245,13 @@ int mwifiex_sta_init_cmd(struct mwifiex_private *priv, u8 first_sta, bool init)
                                adapter->hs_cfg.gpio = data;
                        }
 
-                       ret = mwifiex_dnld_dt_cfgdata(priv, adapter->dt_node,
-                                                     "marvell,caldata");
-                       if (ret)
-                               return -1;
+                       mwifiex_dnld_dt_cfgdata(priv, adapter->dt_node,
+                                               "marvell,caldata");
                }
 
-               if (adapter->cal_data) {
-                       ret = mwifiex_send_cmd(priv, HostCmd_CMD_CFG_DATA,
-                                              HostCmd_ACT_GEN_SET, 0, NULL,
-                                              true);
-                       if (ret)
-                               return -1;
-               }
+               if (adapter->cal_data)
+                       mwifiex_send_cmd(priv, HostCmd_CMD_CFG_DATA,
+                                        HostCmd_ACT_GEN_SET, 0, NULL, true);
 
                /* Read MAC address from HW */
                ret = mwifiex_send_cmd(priv, HostCmd_CMD_GET_HW_SPEC,