diff mbox

mac80211: fix a build error.

Message ID 1415215471-13418-1-git-send-email-emmanuel.grumbach@intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Emmanuel Grumbach Nov. 5, 2014, 7:24 p.m. UTC
From: Matt Chen <matt.chen@intel.com>

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 <matt.chen@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
---
 net/mac80211/tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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);