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/a61103184983
branches:  trunk
changeset: 986778:a61103184983
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 d4ed8dc80e98 -r a61103184983 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