diff options
author | JaeMan Park <jaeman@google.com> | 2023-04-05 14:24:46 +0900 |
---|---|---|
committer | JaeMan Park <jaeman@google.com> | 2023-04-05 14:24:46 +0900 |
commit | bc6f9b4a5dce5d40abe377d7f3254f22a4e95b4b (patch) | |
tree | 957e71420496d0dfc043fd0848b49365808dda67 | |
parent | e1474528cd4a73fbc259092e73ed14a2b8b41972 (diff) | |
download | wmediumd-bc6f9b4a5dce5d40abe377d7f3254f22a4e95b4b.tar.gz |
Send multicast frames only to the stations have client attachedandroid-u-beta-1-gpl
Current wmediumd tries to send multicast frames to all nodes that are
registered but not currently used. Modify wmediumd to send multicast
frame to the station that only has a connected client.
Bug: 277004763
Test: Set wmediumd log level to 7 and check wmediumd does not clones
multicast frame (probe_req) to all nodes (total 128 nodes)
Change-Id: Ia61101fcf875bb1a4edd9530ef76e19bf0a3d809
-rw-r--r-- | wmediumd/wmediumd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wmediumd/wmediumd.c b/wmediumd/wmediumd.c index ac2723a..2b1e9a4 100644 --- a/wmediumd/wmediumd.c +++ b/wmediumd/wmediumd.c @@ -834,7 +834,7 @@ static void wmediumd_deliver_frame(struct usfstl_job *job) if (memcmp(src, station->addr, ETH_ALEN) == 0) continue; - if (is_multicast_ether_addr(dest)) { + if (is_multicast_ether_addr(dest) && station->client != NULL) { int snr, rate_idx, signal; double error_prob; |