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/c8a52bb6c946
branches: trunk
changeset: 370871:c8a52bb6c946
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 bd0b8d41861f -r c8a52bb6c946 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
@@ -2585,7 +2585,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);
@@ -2593,10 +2593,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