Revert "wifi: cw1200: Avoid processing an invalid TIM IE"
This reverts commit 045e1a3f2e
.
This commit is contained in:
parent
911ea2912e
commit
038863cd84
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue