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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2013 18:57:01 +0000 (10:57 -0800)
commit88870d019e42cb9a9d594c77ea2bdd52e6a68361
treeb6a8f9ee3bb922138bc2487e68e22bd1df47ff42
parent0c17d9208119338ccb95d1b55ee74d7062928336
mwifiex: fix wrong eth_hdr usage for bridged packets in AP mode

commit 8d93f1f309d38b65fce0b9f0de91ba6c96990c07 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mwifiex/uap_txrx.c