ath11k: Fix wrong phy_mode in mgmt_rx_event_params
PATCH 1/1 ath11k: Fix wrong phy_mode in mgmt_rx_event_params
Changed the wrong phy_mode parsing in mgmt_rx_event_params and removed unused wlan_phymode enum.
Signed-off-by Sathishkumar Muruganandam <[email protected]>
--- drivers/net/wireless/ath/ath11k/wmi.c | 3 +-- drivers/net/wireless/ath/ath11k/wmi.h | 24 +----------------------- 2 files changed, 2 insertions(+), 25 deletions(-)
drivers/net/wireless/ath/ath11k/wmi.c +1 -2
@@ -4757,8 +4757,7 @@ static void ath11k_mgmt_rx_event(struct ath11k_base *ab, struct sk_buff *skb) goto exit; } -if (rx_ev.phy_mode ==WLAN_PHYMODE_11B && - status->band ==NL80211_BAND_5GHZ ) +if (rx_ev.phy_mode ==MODE_11B && status->band ==NL80211_BAND_5GHZ )ath11k_dbg (ab,ATH11K_DBG_WMI ,"wmi mgmt rx 11b (CCK) on 5GHz\n" );
drivers/net/wireless/ath/ath11k/wmi.h +1 -23
@@ -4089,28 +4089,6 @@ struct wmi_pdev_radar_ev {s32 sidx; } __packed; -enum wlan_phymode { -WLAN_PHYMODE_AUTO =0 , -WLAN_PHYMODE_11A =1 , -WLAN_PHYMODE_11B =2 , -WLAN_PHYMODE_11G =3 , -WLAN_PHYMODE_11NA_HT20 =4 , -WLAN_PHYMODE_11NG_HT20 =5 , -WLAN_PHYMODE_11NA_HT40PLUS =6 , -WLAN_PHYMODE_11NA_HT40MINUS =7 , -WLAN_PHYMODE_11NG_HT40PLUS =8 , -WLAN_PHYMODE_11NG_HT40MINUS =9 , -WLAN_PHYMODE_11NG_HT40 =10 , -WLAN_PHYMODE_11NA_HT40 =11 , -WLAN_PHYMODE_11AC_VHT20 =12 , -WLAN_PHYMODE_11AC_VHT40PLUS =13 , -WLAN_PHYMODE_11AC_VHT40MINUS =14 , -WLAN_PHYMODE_11AC_VHT40 =15 , -WLAN_PHYMODE_11AC_VHT80 =16 , -WLAN_PHYMODE_11AC_VHT160 =17 , -WLAN_PHYMODE_11AC_VHT80_80 =18 , -}; -#define WMI_RX_STATUS_OK 0x00#define WMI_RX_STATUS_ERR_CRC 0x01#define WMI_RX_STATUS_ERR_DECRYPT 0x08
@@ -4124,7 +4102,7 @@ struct mgmt_rx_event_params {u32 snr;u8 rssi_ctl[WLAN_MGMT_TXRX_HOST_MAX_ANTENNA ];u32 rate; -enum wlan_phymode phy_mode; +enum wmi_phy_mode phy_mode;u32 buf_len;int status;u32 flags;
Signature · 7 lines
2.7.4 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 5 lines · Sathishkumar Muruganandam
Changed the wrong
phy_modeparsing inmgmt_rx_event_paramsand removed unusedwlan_phymodeenum.Signed-off-by Sathishkumar Muruganandam <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath11k-bringup branch of ath.git, thanks.
b251194cbb54 ath11k: Fix wrong phy_mode in mgmt_rx_event_params
Signature · 9 lines
https://patchwork.kernel.org/patch/11047177/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k