aboutsummaryrefslogtreecommitdiffstats
path: root/driver/modules/hostap_ap.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/modules/hostap_ap.c')
-rw-r--r--driver/modules/hostap_ap.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/driver/modules/hostap_ap.c b/driver/modules/hostap_ap.c
index ac3f9f0..4c011df 100644
--- a/driver/modules/hostap_ap.c
+++ b/driver/modules/hostap_ap.c
@@ -2801,13 +2801,10 @@ ap_tx_ret hostap_handle_sta_tx(local_info_t *local, struct sk_buff *skb,
spin_unlock(&local->ap->sta_table_lock);
if (local->iw_mode == IW_MODE_MASTER && sta == NULL && !wds) {
- /* remove FromDS flag from (pseudo) ad-hoc style
- * communication between APs */
- txdesc->frame_control &=
- ~(__constant_cpu_to_le16(WLAN_FC_FROMDS));
-
- printk(KERN_DEBUG "AP: packet to non-associated STA "
+ printk(KERN_DEBUG "AP: drop packet to non-associated STA "
MACSTR "\n", MAC2STR(txdesc->addr1));
+ ret = AP_TX_DROP;
+ goto out;
}
if (sta == NULL)