Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9180990 authored by Pavel Roskin's avatar Pavel Roskin Committed by Jeff Garzik
Browse files

[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: default avatarPavel Roskin <proski@gnu.org>
Signed-off-by: default avatarJouni Malinen <j@w1.fi>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 67c4f7aa
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
	}