mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
Fix update_beacon calls
Error introduced at3555bdb258Also clean up validate_recv_ctrl_frame Link:797afdf248Linkaaa0bc19fa
This commit is contained in:
@@ -4816,9 +4816,9 @@ sint xmitframe_enqueue_for_sleeping_sta(_adapter *padapter, struct xmit_frame *p
|
||||
/* RTW_INFO_DUMP("enqueue, tim=", pstapriv->tim_bitmap, pstapriv->aid_bmp_len); */
|
||||
if (update_tim == _TRUE) {
|
||||
if (is_broadcast_mac_addr(pattrib->ra))
|
||||
_update_beacon(padapter, WLAN_EID_DS_PARAMS, NULL, _TRUE, "buffer BC");
|
||||
_update_beacon(padapter, WLAN_EID_TIM, NULL, _TRUE, "buffer BC");
|
||||
else
|
||||
_update_beacon(padapter, WLAN_EID_DS_PARAMS, NULL, _TRUE, "buffer MC");
|
||||
_update_beacon(padapter, WLAN_EID_TIM, NULL, _TRUE, "buffer MC");
|
||||
} else
|
||||
chk_bmc_sleepq_cmd(padapter);
|
||||
|
||||
@@ -4885,7 +4885,7 @@ sint xmitframe_enqueue_for_sleeping_sta(_adapter *padapter, struct xmit_frame *p
|
||||
if (update_tim == _TRUE) {
|
||||
/* RTW_INFO("sleepq_len==1, update BCNTIM\n"); */
|
||||
/* upate BCN for TIM IE */
|
||||
_update_beacon(padapter, WLAN_EID_DS_PARAMS, NULL, _TRUE, "buffer UC");
|
||||
_update_beacon(padapter, WLAN_EID_TIM, NULL, _TRUE, "buffer UC");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5170,11 +5170,11 @@ _exit:
|
||||
if (update_mask) {
|
||||
/* update_BCNTIM(padapter); */
|
||||
if ((update_mask & (BIT(0) | BIT(1))) == (BIT(0) | BIT(1)))
|
||||
_update_beacon(padapter, WLAN_EID_DS_PARAMS, NULL, _TRUE, "clear UC&BMC");
|
||||
_update_beacon(padapter, WLAN_EID_TIM, NULL, _TRUE, "clear UC&BMC");
|
||||
else if ((update_mask & BIT(1)) == BIT(1))
|
||||
_update_beacon(padapter, WLAN_EID_DS_PARAMS, NULL, _TRUE, "clear BMC");
|
||||
_update_beacon(padapter, WLAN_EID_TIM, NULL, _TRUE, "clear BMC");
|
||||
else
|
||||
_update_beacon(padapter, WLAN_EID_DS_PARAMS, NULL, _TRUE, "clear UC");
|
||||
_update_beacon(padapter, WLAN_EID_TIM, NULL, _TRUE, "clear UC");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -5252,7 +5252,7 @@ void xmit_delivery_enabled_frames(_adapter *padapter, struct sta_info *psta)
|
||||
/* RTW_INFO_DUMP("update_BCNTIM, tim=", pstapriv->tim_bitmap, pstapriv->aid_bmp_len); */
|
||||
/* upate BCN for TIM IE */
|
||||
/* update_BCNTIM(padapter); */
|
||||
update_beacon(padapter, WLAN_EID_DS_PARAMS, NULL, _TRUE);
|
||||
update_beacon(padapter, WLAN_EID_TIM, NULL, _TRUE);
|
||||
/* update_mask = BIT(0); */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user