|
@@ -348,7 +348,7 @@ static int wl1271_plt_init(struct wl1271 *wl)
|
|
goto out_free_memmap;
|
|
goto out_free_memmap;
|
|
|
|
|
|
/* Initialize connection monitoring thresholds */
|
|
/* Initialize connection monitoring thresholds */
|
|
- ret = wl1271_acx_conn_monit_params(wl);
|
|
|
|
|
|
+ ret = wl1271_acx_conn_monit_params(wl, false);
|
|
if (ret < 0)
|
|
if (ret < 0)
|
|
goto out_free_memmap;
|
|
goto out_free_memmap;
|
|
|
|
|
|
@@ -1651,6 +1651,11 @@ static void wl1271_op_bss_info_changed(struct ieee80211_hw *hw,
|
|
if (ret < 0)
|
|
if (ret < 0)
|
|
goto out_sleep;
|
|
goto out_sleep;
|
|
|
|
|
|
|
|
+ /* enable the connection monitoring feature */
|
|
|
|
+ ret = wl1271_acx_conn_monit_params(wl, true);
|
|
|
|
+ if (ret < 0)
|
|
|
|
+ goto out_sleep;
|
|
|
|
+
|
|
/* If we want to go in PSM but we're not there yet */
|
|
/* If we want to go in PSM but we're not there yet */
|
|
if (test_bit(WL1271_FLAG_PSM_REQUESTED, &wl->flags) &&
|
|
if (test_bit(WL1271_FLAG_PSM_REQUESTED, &wl->flags) &&
|
|
!test_bit(WL1271_FLAG_PSM, &wl->flags)) {
|
|
!test_bit(WL1271_FLAG_PSM, &wl->flags)) {
|
|
@@ -1663,6 +1668,11 @@ static void wl1271_op_bss_info_changed(struct ieee80211_hw *hw,
|
|
/* use defaults when not associated */
|
|
/* use defaults when not associated */
|
|
clear_bit(WL1271_FLAG_STA_ASSOCIATED, &wl->flags);
|
|
clear_bit(WL1271_FLAG_STA_ASSOCIATED, &wl->flags);
|
|
wl->aid = 0;
|
|
wl->aid = 0;
|
|
|
|
+
|
|
|
|
+ /* disable connection monitor features */
|
|
|
|
+ ret = wl1271_acx_conn_monit_params(wl, false);
|
|
|
|
+ if (ret < 0)
|
|
|
|
+ goto out_sleep;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|