Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/dev/pci Ensure RSSI values are in the correct range.
details: https://anonhg.NetBSD.org/src-all/rev/89c07bf5ae83
branches: trunk
changeset: 948977:89c07bf5ae83
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Wed Jul 01 12:26:58 2020 +1000
description:
Ensure RSSI values are in the correct range.
diffstat:
sys/dev/pci/if_iwn.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r bf442572ce01 -r 89c07bf5ae83 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c Wed Jul 01 12:26:13 2020 +1000
+++ b/sys/dev/pci/if_iwn.c Wed Jul 01 12:26:58 2020 +1000
@@ -2512,7 +2512,7 @@
}
/* push the frame up to the 802.11 stack */
/* NNN Convert rssi to -10 to 110 ? for 802.11 layer */
- ieee80211_input(ni, m, rssi, 0);
+ ieee80211_input(ni, m, rssi + 116, 0);
/* Node is no longer needed. */
ieee80211_free_node(ni);
@@ -2520,10 +2520,10 @@
} else {
/* No node found ... process differently. */
- (void) ieee80211_input_all(ic, m, rssi, 0);
}
m_free(m);
+ (void) ieee80211_input_all(ic, m, rssi + 116, 0);
splx(s);
}
Home |
Main Index |
Thread Index |
Old Index