[RFC PATCH] hostap: suppress broadcast if no stations are associated
Pavel Roskin
proski
Mon Apr 9 06:42:33 PDT 2007
This may be useful in mesh setups when most stations act as repeaters only.
Signed-off-by: Pavel Roskin <proski at gnu.org>
---
drivers/net/wireless/hostap/hostap_ap.c | 2 ++
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 e741080..f369152 100644
--- a/drivers/net/wireless/hostap/hostap_ap.c
+++ b/drivers/net/wireless/hostap/hostap_ap.c
@@ -2747,6 +2747,8 @@ ap_tx_ret hostap_handle_sta_tx(local_info_t *local, struct hostap_tx_data *tx)
if (hdr->addr1[0] & 0x01) {
/* broadcast/multicast frame - no AP related processing */
+ if (local->ap->num_sta <= 0)
+ ret = AP_TX_DROP;
goto out;
}
--
Regards,
Pavel Roskin
More information about the Hostap
mailing list