aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/rx.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r--net/mac80211/rx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index c9ff98a93211..0989c212b7c2 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -987,11 +987,11 @@ ieee80211_rx_h_remove_qos_control(struct ieee80211_txrx_data *rx)
987static int 987static int
988ieee80211_802_1x_port_control(struct ieee80211_txrx_data *rx) 988ieee80211_802_1x_port_control(struct ieee80211_txrx_data *rx)
989{ 989{
990 if (unlikely(rx->sdata->ieee802_1x_pac && 990 if (unlikely(!rx->sta || !(rx->sta->flags & WLAN_STA_AUTHORIZED))) {
991 (!rx->sta || !(rx->sta->flags & WLAN_STA_AUTHORIZED)))) {
992#ifdef CONFIG_MAC80211_DEBUG 991#ifdef CONFIG_MAC80211_DEBUG
993 printk(KERN_DEBUG "%s: dropped frame " 992 if (net_ratelimit())
994 "(unauthorized port)\n", rx->dev->name); 993 printk(KERN_DEBUG "%s: dropped frame "
994 "(unauthorized port)\n", rx->dev->name);
995#endif /* CONFIG_MAC80211_DEBUG */ 995#endif /* CONFIG_MAC80211_DEBUG */
996 return -EACCES; 996 return -EACCES;
997 } 997 }