wl12xx: handle injected packets
authorEliad Peller <eliad@wizery.com>
Tue, 11 Oct 2011 11:52:25 +0000 (13:52 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 11 Oct 2011 19:24:51 +0000 (22:24 +0300)
commit0f1680147ce2509383e053fa843020e0e9f3c6ce
tree575a9799f14fa4c129c7725d2725845926145b9f
parentccb62000d5e92772b6d5c2acce2f56263886ed89
wl12xx: handle injected packets

Injected packets are sent with no vif, causing the wl12xx
to NULL-dereference in multiple places.

Furthermore, injected packets are currently not sent at all,
as system_hlid doesn't belong to any specific role, so
wl1271_skb_dequeue() never return its packets.

Handle both these problems.

Reported-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c
drivers/net/wireless/wl12xx/tx.c