mwifiex: fix wrong eth_hdr usage for bridged packets in AP mode
authorUjjal Roy <royujjal@gmail.com>
Tue, 5 Nov 2013 23:01:45 +0000 (15:01 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Nov 2013 19:42:45 +0000 (14:42 -0500)
commit8d93f1f309d38b65fce0b9f0de91ba6c96990c07
tree47856082cb75220ec8e693ef9c172a24d1e8a11c
parentd03b4aa77e1187b77dfe37d14a923547f00baa66
mwifiex: fix wrong eth_hdr usage for bridged packets in AP mode

The eth_hdr is never defined in this driver but it gets compiled
without any warning/error because kernel has defined eth_hdr.

Fix it by defining our own p_ethhdr and use it instead of eth_hdr.

Cc: <stable@vger.kernel.org> # 3.7+
Signed-off-by: Ujjal Roy <royujjal@gmail.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/uap_txrx.c