]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/mac80211/util.c
Merge remote-tracking branch 'ipsec/master'
[karo-tx-linux.git] / net / mac80211 / util.c
index 9c3200bcfc02d53150c6c791d7e2d7793496974f..69e4ef5348a0e916b76fa87de9d83402ec99a5e4 100644 (file)
@@ -2238,6 +2238,10 @@ u64 ieee80211_calculate_rx_timestamp(struct ieee80211_local *local,
        }
 
        rate = cfg80211_calculate_bitrate(&ri);
+       if (WARN_ONCE(!rate,
+                     "Invalid bitrate: flags=0x%x, idx=%d, vht_nss=%d\n",
+                     status->flag, status->rate_idx, status->vht_nss))
+               return 0;
 
        /* rewind from end of MPDU */
        if (status->flag & RX_FLAG_MACTIME_END)