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/a1346b57b5ae
branches: trunk
changeset: 361291:a1346b57b5ae
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 343595045392 -r a1346b57b5ae 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