mwifiex: illegal assignment
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 17 May 2016 23:01:58 +0000 (01:01 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 14 Jun 2016 14:19:11 +0000 (17:19 +0300)
Variable adapter is incorrectly initialized.

Fixes: bf00dc22bc7a ("mwifiex: AMSDU Rx frame handling in AP mode")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/uap_txrx.c

index 666e91af59d773dc0b83061d84f4a598cf66497e..bf5660eb27d370d23f7bbcead25cb56b0fef78a8 100644 (file)
@@ -272,7 +272,7 @@ int mwifiex_handle_uap_rx_forward(struct mwifiex_private *priv,
 int mwifiex_uap_recv_packet(struct mwifiex_private *priv,
                            struct sk_buff *skb)
 {
-       struct mwifiex_adapter *adapter = adapter;
+       struct mwifiex_adapter *adapter = priv->adapter;
        struct mwifiex_sta_node *src_node;
        struct ethhdr *p_ethhdr;
        struct sk_buff *skb_uap;