Revert "wifi: cw1200: Avoid processing an invalid TIM IE"

This reverts commit 045e1a3f2e.
This commit is contained in:
Ksawlii 2024-11-24 00:23:53 +01:00
parent 911ea2912e
commit 038863cd84

View file

@ -1170,7 +1170,7 @@ void cw1200_rx_cb(struct cw1200_common *priv,
size_t ies_len = skb->len - (ies - (u8 *)(skb->data));
tim_ie = cfg80211_find_ie(WLAN_EID_TIM, ies, ies_len);
if (tim_ie && tim_ie[1] >= sizeof(struct ieee80211_tim_ie)) {
if (tim_ie) {
struct ieee80211_tim_ie *tim =
(struct ieee80211_tim_ie *)&tim_ie[2];