]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
mac80211: rename ieee80211_rx_status::vht_nss to just nss
authorJohannes Berg <johannes.berg@intel.com>
Wed, 26 Apr 2017 11:51:41 +0000 (13:51 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 28 Apr 2017 08:41:53 +0000 (10:41 +0200)
This field will need to be used again for HE, so rename it now.

Again, mostly done with this spatch:

@@
expression status;
@@
-status->vht_nss
+status->nss
@@
expression status;
@@
-status.vht_nss
+status.nss

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/ath/ath10k/htt_rx.c
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
drivers/net/wireless/mac80211_hwsim.c
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
include/net/mac80211.h
net/mac80211/rx.c
net/mac80211/sta_info.h
net/mac80211/util.c

index f5ddb83e285f3d2688c7f8f6b1364a01ee8307bb..84b6067ff6e774604722224752eb0c35dbcead21 100644 (file)
@@ -689,7 +689,7 @@ static void ath10k_htt_rx_h_rates(struct ath10k *ar,
                }
 
                status->rate_idx = mcs;
-               status->vht_nss = nss;
+               status->nss = nss;
 
                if (sgi)
                        status->enc_flags |= RX_ENC_FLAG_SHORT_GI;
@@ -874,7 +874,7 @@ static void ath10k_htt_rx_h_ppdu(struct ath10k *ar,
                /* New PPDU starts so clear out the old per-PPDU status. */
                status->freq = 0;
                status->rate_idx = 0;
-               status->vht_nss = 0;
+               status->nss = 0;
                status->encoding = RX_ENC_LEGACY;
                status->bw = RATE_INFO_BW_20;
                status->flag &= ~RX_FLAG_MACTIME_END;
@@ -946,7 +946,7 @@ static void ath10k_process_rx(struct ath10k *ar,
                   (status->bw == RATE_INFO_BW_160) ? "160" : "",
                   status->enc_flags & RX_ENC_FLAG_SHORT_GI ? "sgi " : "",
                   status->rate_idx,
-                  status->vht_nss,
+                  status->nss,
                   status->freq,
                   status->band, status->flag,
                   !!(status->flag & RX_FLAG_FAILED_FCS_CRC),
index 93226329e0773c7a78ca9253f4bf0db641801dd7..fb368d19c0a312e88dd1bc87ad6cb04167d40189 100644 (file)
@@ -451,7 +451,7 @@ void iwl_mvm_rx_rx_mpdu(struct iwl_mvm *mvm, struct napi_struct *napi,
        } else if (rate_n_flags & RATE_MCS_VHT_MSK) {
                u8 stbc = (rate_n_flags & RATE_MCS_VHT_STBC_MSK) >>
                                RATE_MCS_STBC_POS;
-               rx_status->vht_nss =
+               rx_status->nss =
                        ((rate_n_flags & RATE_VHT_MCS_NSS_MSK) >>
                                                RATE_VHT_MCS_NSS_POS) + 1;
                rx_status->rate_idx = rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK;
index 447f030c5c0aa9dd61adb17b1be3994987b80c7f..d66b2b527bd8b2e0e9f7c8678fe10f54fc35246c 100644 (file)
@@ -982,7 +982,7 @@ void iwl_mvm_rx_mpdu_mq(struct iwl_mvm *mvm, struct napi_struct *napi,
        } else if (rate_n_flags & RATE_MCS_VHT_MSK) {
                u8 stbc = (rate_n_flags & RATE_MCS_VHT_STBC_MSK) >>
                                RATE_MCS_STBC_POS;
-               rx_status->vht_nss =
+               rx_status->nss =
                        ((rate_n_flags & RATE_VHT_MCS_NSS_MSK) >>
                                                RATE_VHT_MCS_NSS_POS) + 1;
                rx_status->rate_idx = rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK;
index 358f5f8ff6b957cac7b79cf1e111b7f8007d97b1..87444af20fc5eb183784f9497869a59f8b6100b7 100644 (file)
@@ -1192,7 +1192,7 @@ static bool mac80211_hwsim_tx_frame_no_nl(struct ieee80211_hw *hw,
        if (info->control.rates[0].flags & IEEE80211_TX_RC_VHT_MCS) {
                rx_status.rate_idx =
                        ieee80211_rate_get_vht_mcs(&info->control.rates[0]);
-               rx_status.vht_nss =
+               rx_status.nss =
                        ieee80211_rate_get_vht_nss(&info->control.rates[0]);
                rx_status.encoding = RX_ENC_VHT;
        } else {
index 2182a3ec5b9fa7fa731e25821cc79df961c73810..03665e82065f18e3503fce0bfa7c3bc98a6ab564 100644 (file)
@@ -531,7 +531,7 @@ bool rtl8821ae_rx_query_desc(struct ieee80211_hw *hw,
        if (status->is_short_gi)
                rx_status->enc_flags |= RX_ENC_FLAG_SHORT_GI;
 
-       rx_status->vht_nss = status->vht_nss;
+       rx_status->nss = status->vht_nss;
        rx_status->flag |= RX_FLAG_MACTIME_START;
 
        /* hw will set status->decrypted true, if it finds the
index c7c1f75a4a486a506a2ce6b4ef5446415422c2ef..f1b58b580080fe6a86c4868a08e900e80405e7a2 100644 (file)
@@ -1171,7 +1171,7 @@ enum mac80211_rx_encoding {
  * @antenna: antenna used
  * @rate_idx: index of data rate into band's supported rates or MCS index if
  *     HT or VHT is used (%RX_FLAG_HT/%RX_FLAG_VHT)
- * @vht_nss: number of streams (VHT only)
+ * @nss: number of streams (VHT and HE only)
  * @flag: %RX_FLAG_\*
  * @encoding: &enum mac80211_rx_encoding
  * @bw: &enum rate_info_bw
@@ -1191,7 +1191,7 @@ struct ieee80211_rx_status {
        u8 enc_flags;
        u8 encoding:2, bw:3;
        u8 rate_idx;
-       u8 vht_nss;
+       u8 nss;
        u8 rx_flags;
        u8 band;
        u8 antenna;
index 762e89cf737adc4ab856eae7faeb368537feda06..35f4c7d7a50089e3998ff9860e86f6d26e1da600 100644 (file)
@@ -479,7 +479,7 @@ ieee80211_add_rx_radiotap_header(struct ieee80211_local *local,
                        *pos++ = 0;
                }
                /* MCS/NSS */
-               *pos = (status->rate_idx << 4) | status->vht_nss;
+               *pos = (status->rate_idx << 4) | status->nss;
                pos += 4;
                /* coding field */
                if (status->enc_flags & RX_ENC_FLAG_LDPC)
@@ -4308,10 +4308,10 @@ void ieee80211_rx_napi(struct ieee80211_hw *hw, struct ieee80211_sta *pubsta,
                        break;
                case RX_ENC_VHT:
                        if (WARN_ONCE(status->rate_idx > 9 ||
-                                     !status->vht_nss ||
-                                     status->vht_nss > 8,
+                                     !status->nss ||
+                                     status->nss > 8,
                                      "Rate marked as a VHT rate but data is invalid: MCS: %d, NSS: %d\n",
-                                     status->rate_idx, status->vht_nss))
+                                     status->rate_idx, status->nss))
                                goto drop;
                        break;
                default:
index c7f259409187b717b007df44ed3153c20af83a51..150f478c7c636c7a70fe918afbb843f4a3ef082c 100644 (file)
@@ -747,7 +747,7 @@ static inline u16 sta_stats_encode_rate(struct ieee80211_rx_status *s)
 
        switch (s->encoding) {
        case RX_ENC_VHT:
-               r |= STA_STATS_RATE_TYPE_VHT | (s->vht_nss << 4);
+               r |= STA_STATS_RATE_TYPE_VHT | (s->nss << 4);
                break;
        case RX_ENC_HT:
                r |= STA_STATS_RATE_TYPE_HT;
index e9c28904998b22c5574719fed719091ad68d2b5c..83342b73e9aadd5d8256e75df0cee633fd26b0e2 100644 (file)
@@ -2726,7 +2726,7 @@ u64 ieee80211_calculate_rx_timestamp(struct ieee80211_local *local,
        case RX_ENC_VHT:
                ri.flags |= RATE_INFO_FLAGS_VHT_MCS;
                ri.mcs = status->rate_idx;
-               ri.nss = status->vht_nss;
+               ri.nss = status->nss;
                ri.bw = status->bw;
                if (status->enc_flags & RX_ENC_FLAG_SHORT_GI)
                        ri.flags |= RATE_INFO_FLAGS_SHORT_GI;
@@ -2773,7 +2773,7 @@ u64 ieee80211_calculate_rx_timestamp(struct ieee80211_local *local,
        if (WARN_ONCE(!rate,
                      "Invalid bitrate: flags=0x%llx, idx=%d, vht_nss=%d\n",
                      (unsigned long long)status->flag, status->rate_idx,
-                     status->vht_nss))
+                     status->nss))
                return 0;
 
        /* rewind from end of MPDU */