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 Using the rxfrag time stamp should work.



details:   https://anonhg.NetBSD.org/src-all/rev/ce341ffe5c52
branches:  trunk
changeset: 950050:ce341ffe5c52
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Thu Sep 24 05:09:13 2020 +1000

description:
Using the rxfrag time stamp should work.

diffstat:

 sys/dev/pci/if_iwm.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 99b593f03c28 -r ce341ffe5c52 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Thu Sep 24 05:05:07 2020 +1000
+++ b/sys/dev/pci/if_iwm.c      Thu Sep 24 05:09:13 2020 +1000
@@ -5892,7 +5892,7 @@
        tsf = le64toh(ni->ni_tstamp.tsf);
 
        sta->is_assoc = htole32(assoc);
-       sta->dtim_time = htole32(ni->ni_tstamp + dtim_off);
+       sta->dtim_time = htole32(ni->ni_rxfragstamp + dtim_off);
        sta->dtim_tsf = htole64(tsf + dtim_off);
        sta->bi = htole32(ni->ni_intval);
        sta->bi_reciprocal = htole32(iwm_reciprocal(ni->ni_intval));
@@ -5900,7 +5900,7 @@
        sta->dtim_reciprocal = htole32(iwm_reciprocal(sta->dtim_interval));
        sta->listen_interval = htole32(10);
        sta->assoc_id = htole32(ni->ni_associd);
-       sta->assoc_beacon_arrive_time = htole32(ni->ni_tstamp);
+       sta->assoc_beacon_arrive_time = htole32(ni->ni_rxfragstamp);
 }
 
 static int



Home | Main Index | Thread Index | Old Index