Skip to content

Commit 7d59d1e

Browse files
pennamfacchinm
authored andcommitted
WHD: force disconnect on roamed due to low RSSI
1 parent 7ef7506 commit 7d59d1e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

connectivity/drivers/emac/COMPONENT_WHD/interface/WhdSTAInterface.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,10 @@ static void *whd_wifi_link_state_change_handler(whd_interface_t ifp,
178178
(event_header->event_type == WLC_E_DISASSOC_IND) ||
179179
((event_header->event_type == WLC_E_PSK_SUP) &&
180180
(event_header->status == WLC_SUP_KEYED) &&
181-
(event_header->reason == WLC_E_SUP_DEAUTH))) {
181+
(event_header->reason == WLC_E_SUP_DEAUTH)) ||
182+
((event_header->event_type == WLC_E_LINK) &&
183+
(event_header->status == WLC_E_STATUS_SUCCESS) &&
184+
(event_header->reason == WLC_E_REASON_LOW_RSSI))) {
182185
whd_emac_wifi_link_state_changed(ifp, WHD_FALSE);
183186
return handler_user_data;
184187
}

0 commit comments

Comments
 (0)