Skip to contentSkip to conversation

ath11k: fill channel info from rx channel

PATCH In review Venkateswara Naralasetty 2 participants 3 messages Mar 17, 2020 – Mar 18, 2020 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath11k: fill channel info from rx channel

Fill the channel information from rx channel for the packet which has invalid channel info from meta data.

---
 drivers/net/wireless/ath/ath11k/dp_rx.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
drivers/net/wireless/ath/ath11k/dp_rx.c +7 -3
index dc7881b..034e6f21 100644
@@ -1998,9 +1998,13 @@ static void ath11k_dp_rx_h_ppdu(struct ath11k *ar, struct hal_rx_desc *rx_desc,
 	} else if (channel_num >= 36 && channel_num <= 173) {
 		rx_status->band = NL80211_BAND_5GHZ;
 	} else {
-		ath11k_warn(ar->ab, "Unsupported Channel info received %d\n",
-			    channel_num);
-		return;
+		spin_lock_bh(&ar->data_lock);
+		rx_status->band = ar->rx_channel->band;
+		channel_num =
+			ieee80211_frequency_to_channel(ar->rx_channel->center_freq);
+		spin_unlock_bh(&ar->data_lock);
+		ath11k_dbg_dump(ar->ab, ATH11K_DBG_DATA, NULL, "rx_desc: ",
+				rx_desc, sizeof(struct hal_rx_desc));
 	}
 
 	rx_status->freq = ieee80211_channel_to_frequency(channel_num,
Signature · 1 line
2.7.4
#1 lore raw
Quoted 5 lines · Venkateswara Naralasetty

Fill the channel information from rx channel for the packet which has invalid channel info from meta data.

Patch applied to ath-next branch of ath.git, thanks.

de06b2f75190 ath11k: fill channel info from rx channel

Signature · 8 lines
https://patchwork.kernel.org/patch/11441701/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
#2 lore raw
In reply to Venkateswara Naralasetty
Quoted 5 lines · Venkateswara Naralasetty

Fill the channel information from rx channel for the packet which has invalid channel info from meta data.

Patch applied to ath-next branch of ath.git, thanks.

de06b2f75190 ath11k: fill channel info from rx channel

Signature · 3 lines
https://patchwork.kernel.org/patch/11441701/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches