Use macro to convert sn and seq_ctrl for better readability.
Signed-off-by: Roy Luo <royluo@google.com>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
                return;
 
        status->tid = le16_to_cpu(bar->control) >> 12;
-       seqno = le16_to_cpu(bar->start_seq_num) >> 4;
+       seqno = IEEE80211_SEQ_TO_SN(le16_to_cpu(bar->start_seq_num));
        tid = rcu_dereference(wcid->aggr[status->tid]);
        if (!tid)
                return;
 
        status->aggr = unicast &&
                       !ieee80211_is_qos_nullfunc(hdr->frame_control);
        status->tid = *ieee80211_get_qos_ctl(hdr) & IEEE80211_QOS_CTL_TID_MASK;
-       status->seqno = hdr->seq_ctrl >> 4;
+       status->seqno = IEEE80211_SEQ_TO_SN(hdr->seq_ctrl);
 
        return 0;
 }
 
                mt7603_mac_tx_ba_reset(dev, msta->wcid.idx, tid, -1);
                break;
        case IEEE80211_AMPDU_TX_START:
-               mtxq->agg_ssn = *ssn << 4;
+               mtxq->agg_ssn = IEEE80211_SN_TO_SEQ(*ssn);
                ieee80211_start_tx_ba_cb_irqsafe(vif, sta->addr, tid);
                break;
        case IEEE80211_AMPDU_TX_STOP_CONT:
 
                ieee80211_send_bar(vif, sta->addr, tid, mtxq->agg_ssn);
                break;
        case IEEE80211_AMPDU_TX_START:
-               mtxq->agg_ssn = *ssn << 4;
+               mtxq->agg_ssn = IEEE80211_SN_TO_SEQ(*ssn);
                ieee80211_start_tx_ba_cb_irqsafe(vif, sta->addr, tid);
                break;
        case IEEE80211_AMPDU_TX_STOP_CONT: