aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2003-07-27 03:15:46 (GMT)
committerJouni Malinen <j@w1.fi>2003-07-27 03:15:46 (GMT)
commit952d4feb2cde750b574d81b2e710fc66b5a25f40 (patch)
tree2c0ec916ee1b37c7d43a4130e8182ea18236bc1e
parent27340ca1f3dd17b9038c113cb622d62ca5fdbecf (diff)
downloadhostap-history-952d4feb2cde750b574d81b2e710fc66b5a25f40.zip
hostap-history-952d4feb2cde750b574d81b2e710fc66b5a25f40.tar.gz
hostap-history-952d4feb2cde750b574d81b2e710fc66b5a25f40.tar.bz2
Removed pseudo-adhoc style communication between APs, i.e., drop TX
packets to addresses that do not have STA entry (if they are not to WDS peer). Receiving pseudo-adhoc style frames was apparently broken before so this mode would not have worked anyway. In addition, it is not really needed anymore since WDS links can be used for this kind of links. Trying to send this kind of frames will in most cases cause multiply retries and eventual RetryErr event. This can happen, e.g., when using Linux bridge code. Even firmware lockup has been reported (using STA f/w 1.5.6) when a frame is send to own MAC address (addr1=addr2).
-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)