aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/hostap
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2007-05-28 12:38:47 -0400
committerJeff Garzik <jeff@garzik.org>2007-07-08 22:16:37 -0400
commitb918099030fe6cc093a7d60a88039bd98f16538e (patch)
treecd2ceab12f395182c2f4ebec2c6e3dc741c3c8e5 /drivers/net/wireless/hostap
parent67c4f7aa9e64d37f32eb44d6d093b7028f1060bb (diff)
[PATCH] hostap: Suppress broadcast if no stations are associated
This may be useful in mesh setups when most stations act as repeaters only. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: Jouni Malinen <j@w1.fi> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/hostap')
-rw-r--r--drivers/net/wireless/hostap/hostap_ap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/hostap/hostap_ap.c b/drivers/net/wireless/hostap/hostap_ap.c
index 5b3abd54d0e5..d169529b90bc 100644
--- a/drivers/net/wireless/hostap/hostap_ap.c
+++ b/drivers/net/wireless/hostap/hostap_ap.c
@@ -2704,6 +2704,8 @@ ap_tx_ret hostap_handle_sta_tx(local_info_t *local, struct hostap_tx_data *tx)
2704 2704
2705 if (hdr->addr1[0] & 0x01) { 2705 if (hdr->addr1[0] & 0x01) {
2706 /* broadcast/multicast frame - no AP related processing */ 2706 /* broadcast/multicast frame - no AP related processing */
2707 if (local->ap->num_sta <= 0)
2708 ret = AP_TX_DROP;
2707 goto out; 2709 goto out;
2708 } 2710 }
2709 2711