summaryrefslogtreecommitdiff
path: root/recipes-kernel/rsi-91x/files/fix-rsi-handle-card-ready.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/rsi-91x/files/fix-rsi-handle-card-ready.patch')
-rw-r--r--recipes-kernel/rsi-91x/files/fix-rsi-handle-card-ready.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-kernel/rsi-91x/files/fix-rsi-handle-card-ready.patch b/recipes-kernel/rsi-91x/files/fix-rsi-handle-card-ready.patch
new file mode 100644
index 0000000..aed069a
--- /dev/null
+++ b/recipes-kernel/rsi-91x/files/fix-rsi-handle-card-ready.patch
@@ -0,0 +1,23 @@
+diff --git a/rsi/rsi_91x_hal.c b/rsi/rsi_91x_hal.c
+index b9166f6..a94b871 100644
+--- a/rsi/rsi_91x_hal.c
++++ b/rsi/rsi_91x_hal.c
+@@ -1794,6 +1794,9 @@ int rsi_hal_device_init(struct rsi_hw *adapter)
+
+ rsi_dbg(ERR_ZONE, "%s: oper_mode = %d, coex_mode = %d\n", __func__, common->oper_mode, common->coex_mode);
+
++ adapter->common_hal_fsm = COMMAN_HAL_WAIT_FOR_CARD_READY;
++ common->fsm_state = FSM_CARD_NOT_READY;
++
+ switch (adapter->device_model) {
+ case RSI_DEV_9113:
+ case RSI_DEV_9116:
+@@ -1805,8 +1808,6 @@ int rsi_hal_device_init(struct rsi_hw *adapter)
+ default:
+ return -EINVAL;
+ }
+- adapter->common_hal_fsm = COMMAN_HAL_WAIT_FOR_CARD_READY;
+- common->fsm_state = FSM_CARD_NOT_READY;
+
+ #if defined(CONFIG_RSI_BT_ALONE) || defined(CONFIG_RSI_COEX_MODE)
+ adapter->priv->bt_fsm_state = BT_DEVICE_NOT_READY;