|
@@ -159,6 +159,13 @@ static void wl1271_rx_handle_data(struct wl1271 *wl, u32 length)
|
|
u8 *buf;
|
|
u8 *buf;
|
|
u8 beacon = 0;
|
|
u8 beacon = 0;
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * In PLT mode we seem to get frames and mac80211 warns about them,
|
|
|
|
+ * workaround this by not retrieving them at all.
|
|
|
|
+ */
|
|
|
|
+ if (unlikely(wl->state == WL1271_STATE_PLT))
|
|
|
|
+ return;
|
|
|
|
+
|
|
skb = __dev_alloc_skb(length, GFP_KERNEL);
|
|
skb = __dev_alloc_skb(length, GFP_KERNEL);
|
|
if (!skb) {
|
|
if (!skb) {
|
|
wl1271_error("Couldn't allocate RX frame");
|
|
wl1271_error("Couldn't allocate RX frame");
|