diff options
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_rx.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_rx.c b/drivers/net/wireless/wl12xx/wl1271_rx.c index b7a7c0621ec1..2df7852db9a5 100644 --- a/drivers/net/wireless/wl12xx/wl1271_rx.c +++ b/drivers/net/wireless/wl12xx/wl1271_rx.c | |||
@@ -159,6 +159,13 @@ static void wl1271_rx_handle_data(struct wl1271 *wl, u32 length) | |||
159 | u8 *buf; | 159 | u8 *buf; |
160 | u8 beacon = 0; | 160 | u8 beacon = 0; |
161 | 161 | ||
162 | /* | ||
163 | * In PLT mode we seem to get frames and mac80211 warns about them, | ||
164 | * workaround this by not retrieving them at all. | ||
165 | */ | ||
166 | if (unlikely(wl->state == WL1271_STATE_PLT)) | ||
167 | return; | ||
168 | |||
162 | skb = __dev_alloc_skb(length, GFP_KERNEL); | 169 | skb = __dev_alloc_skb(length, GFP_KERNEL); |
163 | if (!skb) { | 170 | if (!skb) { |
164 | wl1271_error("Couldn't allocate RX frame"); | 171 | wl1271_error("Couldn't allocate RX frame"); |