Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wlcore: ignore dummy packet events in PLT mode

Sometimes the firmware sends a dummy packet event while we are in PLT
mode. This doesn't make sense, it's a firmware bug. Fix this by
ignoring dummy packet events when we're PLT mode.

Reported-by: Yegor Yefremov <yegorslists@googlemail.com>
Reported-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <luca@coelho.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Luciano Coelho and committed by
John W. Linville
69aa1675 98ddcbe0

+5
+5
drivers/net/wireless/ti/wlcore/event.c
··· 158 158 159 159 void wlcore_event_dummy_packet(struct wl1271 *wl) 160 160 { 161 + if (wl->plt) { 162 + wl1271_info("Got DUMMY_PACKET event in PLT mode. FW bug, ignoring."); 163 + return; 164 + } 165 + 161 166 wl1271_debug(DEBUG_EVENT, "DUMMY_PACKET_ID_EVENT_ID"); 162 167 wl1271_tx_dummy_packet(wl); 163 168 }