Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b918099030fe6cc093a7d60a88039bd98f16538e Commit: b918099030fe6cc093a7d60a88039bd98f16538e Parent: 67c4f7aa9e64d37f32eb44d6d093b7028f1060bb Author: Pavel Roskin <[EMAIL PROTECTED]> AuthorDate: Mon May 28 09:38:47 2007 -0700 Committer: Jeff Garzik <[EMAIL PROTECTED]> CommitDate: Sun Jul 8 22:16:37 2007 -0400
[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 <[EMAIL PROTECTED]> Signed-off-by: Jouni Malinen <[EMAIL PROTECTED]> Signed-off-by: John W. Linville <[EMAIL PROTECTED]> --- 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 5b3abd5..d169529 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) if (hdr->addr1[0] & 0x01) { /* broadcast/multicast frame - no AP related processing */ + if (local->ap->num_sta <= 0) + ret = AP_TX_DROP; goto out; } - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html