Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21312
b: refs/heads/master
c: f44349f
h: refs/heads/master
v: v3
  • Loading branch information
James Ketrenos authored and John W. Linville committed Mar 17, 2006
1 parent d919ec8 commit 14f67a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7c567894480daef05bc13abdc4b9414541e245cb
refs/heads/master: f44349f2217d05e4575f24edc3c0e0022f5d448f
14 changes: 13 additions & 1 deletion trunk/net/ieee80211/ieee80211_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,19 @@ static void update_network(struct ieee80211_network *dst,
ieee80211_network_reset(dst);
dst->ibss_dfs = src->ibss_dfs;

memcpy(&dst->stats, &src->stats, sizeof(struct ieee80211_rx_stats));
/* We only update the statistics if they were created by receiving
* the network information on the actual channel the network is on.
*
* This keeps beacons received on neighbor channels from bringing
* down the signal level of an AP. */
if (dst->channel == src->stats.received_channel)
memcpy(&dst->stats, &src->stats,
sizeof(struct ieee80211_rx_stats));
else
IEEE80211_DEBUG_SCAN("Network " MAC_FMT " info received "
"off channel (%d vs. %d)\n", MAC_ARG(src->bssid),
dst->channel, src->stats.received_channel);

dst->capability = src->capability;
memcpy(dst->rates, src->rates, src->rates_len);
dst->rates_len = src->rates_len;
Expand Down

0 comments on commit 14f67a5

Please sign in to comment.