wifi: rtw88: station mode only for SDIO chips
Ping-Ke Shih
maintainerPATCH v2 1/1 wifi: rtw88: station mode only for SDIO chips
Since only station mode has been tested on SDIO chips, only keep it support for SDIO chips to reflect correct supported features.
---
v2: correct subject prefix that should be "rtw88" instead of "rtw89"
--- drivers/net/wireless/realtek/rtw88/main.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
drivers/net/wireless/realtek/rtw88/main.c +9 -5
@@ -2203,6 +2203,7 @@ EXPORT_SYMBOL(rtw_core_deinit);int rtw_register_hw (struct rtw_dev *rtwdev,struct ieee80211_hw *hw) { +bool sta_mode_only = rtwdev->hci.type ==RTW_HCI_TYPE_SDIO ;struct rtw_hal *hal = &rtwdev->hal;int max_tx_headroom =0 ;int ret;
@@ -2231,10 +2232,13 @@ int rtw_register_hw(struct rtw_dev *rtwdev, struct ieee80211_hw *hw)ieee80211_hw_set (hw,TX_AMSDU );ieee80211_hw_set (hw,SINGLE_SCAN_ON_ALL_BANDS ); - hw->wiphy->interface_modes =BIT (NL80211_IFTYPE_STATION ) | -BIT (NL80211_IFTYPE_AP ) | -BIT (NL80211_IFTYPE_ADHOC ) | -BIT (NL80211_IFTYPE_MESH_POINT ); +if (sta_mode_only) + hw->wiphy->interface_modes =BIT (NL80211_IFTYPE_STATION ); +else + hw->wiphy->interface_modes =BIT (NL80211_IFTYPE_STATION ) | +BIT (NL80211_IFTYPE_AP ) | +BIT (NL80211_IFTYPE_ADHOC ) | +BIT (NL80211_IFTYPE_MESH_POINT ); hw->wiphy->available_antennas_tx = hal->antenna_tx; hw->wiphy->available_antennas_rx = hal->antenna_rx;
@@ -2245,7 +2249,7 @@ int rtw_register_hw(struct rtw_dev *rtwdev, struct ieee80211_hw *hw) hw->wiphy->max_scan_ssids =RTW_SCAN_MAX_SSIDS ; hw->wiphy->max_scan_ie_len =rtw_get_max_scan_ie_len (rtwdev); -if (rtwdev->chip->id ==RTW_CHIP_TYPE_8822C ) { +if (!sta_mode_only && rtwdev->chip->id ==RTW_CHIP_TYPE_8822C ) { hw->wiphy->iface_combinations = rtw_iface_combs; hw->wiphy->n_iface_combinations =ARRAY_SIZE (rtw_iface_combs); }
Signature · 1 line
2.25.1
Quoted 8 lines · Ping-Ke Shih
Since only station mode has been tested on SDIO chips, only keep it support for SDIO chips to reflect correct supported features.
Cc Martin Blumenstingl <[email protected]>Signed-off-by Ping-Ke Shih <[email protected]>
Ping-Ke Shih
maintainerQuoted 10 lines · Martin Blumenstingl
Quoted 7 lines · Ping-Ke Shih
Since only station mode has been tested on SDIO chips, only keep it support for SDIO chips to reflect correct supported features.
Cc Martin Blumenstingl <[email protected]>Signed-off-by Ping-Ke Shih <[email protected]>
Thanks for the ack.
Normally Acked-by is added by maintainer, so I will change to Reviewed-by when applying this patch.
Martin Blumenstingl
Reviewed-byQuoted 11 lines · Ping-Ke Shih
Quoted 9 lines · Martin Blumenstingl
Quoted 7 lines · Ping-Ke Shih
Since only station mode has been tested on SDIO chips, only keep it support for SDIO chips to reflect correct supported features.
Cc Martin Blumenstingl <[email protected]>Signed-off-by Ping-Ke Shih <[email protected]>
Quoted 6 lines
Quoted 1 line
Thanks for the ack.
Normally Acked-by is added by maintainer, so I will change to Reviewed-by when applying this patch.
Apologies for my late reply.
That's fine for me - so just for reference (since you already applied it):
Best regards,
Martin
Ping-Ke Shih
maintainerQuoted 8 lines · Ping-Ke Shih
Since only station mode has been tested on SDIO chips, only keep it support for SDIO chips to reflect correct supported features.
Cc Martin Blumenstingl <[email protected]>Signed-off-by Ping-Ke Shih <[email protected]>
1 patch(es) applied to rtw-next branch of rtw.git, thanks.
a54b7a7c773b wifi: rtw88: station mode only for SDIO chips