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/57605680b6d2
branches:  trunk
changeset: 375041:57605680b6d2
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 3beaf46f8d4e -r 57605680b6d2 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 @@ iwm_mac_ctxt_cmd_fill_sta(struct iwm_sof
        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 @@ iwm_mac_ctxt_cmd_fill_sta(struct iwm_sof
        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