Merge remote-tracking branch 'mac80211-next/master'
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 8 Feb 2019 00:42:57 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 8 Feb 2019 00:42:57 +0000 (11:42 +1100)
drivers/net/wireless/mac80211_hwsim.c

index 320edca..87be2b1 100644 (file)
@@ -1273,10 +1273,12 @@ static bool mac80211_hwsim_tx_frame_no_nl(struct ieee80211_hw *hw,
         * probably doesn't really matter.
         */
        if (ieee80211_is_beacon(hdr->frame_control) ||
-           ieee80211_is_probe_resp(hdr->frame_control))
+           ieee80211_is_probe_resp(hdr->frame_control)) {
+               rx_status.boottime_ns = ktime_get_boot_ns();
                now = data->abs_bcn_ts;
-       else
+       } else {
                now = mac80211_hwsim_get_tsf_raw();
+       }
 
        /* Copy skb to all enabled radios that are on the current frequency */
        spin_lock(&hwsim_radio_lock);