@@ -1379,7 +1379,7 @@ static void ath10k_process_rx(struct ath10k *ar, struct sk_buff *skb)
1379
1379
ath10k_get_tid (hdr , tid , sizeof (tid )),
1380
1380
is_multicast_ether_addr (ieee80211_get_DA (hdr )) ?
1381
1381
"mcast" : "ucast" ,
1382
- (__le16_to_cpu (hdr -> seq_ctrl ) & IEEE80211_SCTL_SEQ ) >> 4 ,
1382
+ IEEE80211_SEQ_TO_SN (__le16_to_cpu (hdr -> seq_ctrl )) ,
1383
1383
(status -> encoding == RX_ENC_LEGACY ) ? "legacy" : "" ,
1384
1384
(status -> encoding == RX_ENC_HT ) ? "ht" : "" ,
1385
1385
(status -> encoding == RX_ENC_VHT ) ? "vht" : "" ,
@@ -1902,7 +1902,7 @@ static bool ath10k_htt_rx_h_frag_pn_check(struct ath10k *ar,
1902
1902
last_pn = & peer -> frag_tids_last_pn [tid ];
1903
1903
new_pn .pn48 = ath10k_htt_rx_h_get_pn (ar , skb , offset , enctype );
1904
1904
frag_number = le16_to_cpu (hdr -> seq_ctrl ) & IEEE80211_SCTL_FRAG ;
1905
- seq = (__le16_to_cpu (hdr -> seq_ctrl ) & IEEE80211_SCTL_SEQ ) >> 4 ;
1905
+ seq = IEEE80211_SEQ_TO_SN (__le16_to_cpu (hdr -> seq_ctrl )) ;
1906
1906
1907
1907
if (frag_number == 0 ) {
1908
1908
last_pn -> pn48 = new_pn .pn48 ;
@@ -2824,7 +2824,7 @@ static bool ath10k_htt_rx_proc_rx_frag_ind_hl(struct ath10k_htt *htt,
2824
2824
2825
2825
hdr_space = ieee80211_hdrlen (hdr -> frame_control );
2826
2826
sc = __le16_to_cpu (hdr -> seq_ctrl );
2827
- seq = (sc & IEEE80211_SCTL_SEQ ) >> 4 ;
2827
+ seq = IEEE80211_SEQ_TO_SN (sc ) ;
2828
2828
frag = sc & IEEE80211_SCTL_FRAG ;
2829
2829
2830
2830
sec_index = MS (rx_desc_info , HTT_RX_DESC_HL_INFO_MCAST_BCAST ) ?
0 commit comments