]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita6a2bdefa3681af5da90993eec460c817978fd94
tree47856082cb75220ec8e693ef9c172a24d1e8a11c
parent2cac33efd0854c2b9e311e06a420805ca61eb269
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