From: Matt Chen <[email protected]>

There should be a sdata for the dev->name.
Fix a build error when CONFIG_MAC80211_VERBOSE_DEBUG is enabled.

Signed-off-by: Matt Chen <[email protected]>
Signed-off-by: Emmanuel Grumbach <[email protected]>
---
 net/mac80211/tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 3ffd91f..0d57d5d 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -2077,7 +2077,7 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff 
*skb,
                      !ether_addr_equal(sdata->vif.addr, skb->data + 
ETH_ALEN)))) {
 #ifdef CONFIG_MAC80211_VERBOSE_DEBUG
                net_info_ratelimited("%s: dropped frame to %pM (unauthorized 
port)\n",
-                                   dev->name, hdr.addr1);
+                                   sdata->dev->name, hdr.addr1);
 #endif
 
                I802_DEBUG_INC(local->tx_handlers_drop_unauth_port);
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to