Skip to contentSkip to conversation

wifi: wcn36xx: Remove unused wcn36xx_smd_update_scan_params

PATCH Applied [email protected] 3 participants 3 messages Oct 11, 2025 – Oct 15, 2025 Qualcomm WCN36XX wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 wifi: wcn36xx: Remove unused wcn36xx_smd_update_scan_params

From: "Dr. David Alan Gilbert" <[email protected]>

wcn36xx_smd_update_scan_params() last use was removed in 2020 by commit 5973a2947430 ("wcn36xx: Fix software-driven scan")

Remove it.

This leaves the wcn36xx_hal_update_scan_params_req_ex and wcn36xx_hal_update_scan_params_resp structs unused.

Remove them, together with the unused
wcn36xx_hal_update_scan_params_req.

---
v2
Remove the unused scan structures as suggested by Jeff

 drivers/net/wireless/ath/wcn36xx/hal.h | 74 --------------------------
 drivers/net/wireless/ath/wcn36xx/smd.c | 60 ---------------------
 drivers/net/wireless/ath/wcn36xx/smd.h |  1 -
 3 files changed, 135 deletions(-)
drivers/net/wireless/ath/wcn36xx/hal.h +0 -74
index d3a9d00e65e1..ef9ea4ff891b 100644
@@ -4484,80 +4484,6 @@ struct set_rssi_filter_resp {
 	u32 status;
 };
 
-/* Update scan params - sent from host to PNO to be used during PNO
- * scanningx */
-struct wcn36xx_hal_update_scan_params_req {
-
-	struct wcn36xx_hal_msg_header header;
-
-	/* Host setting for 11d */
-	u8 dot11d_enabled;
-
-	/* Lets PNO know that host has determined the regulatory domain */
-	u8 dot11d_resolved;
-
-	/* Channels on which PNO is allowed to scan */
-	u8 channel_count;
-	u8 channels[WCN36XX_HAL_PNO_MAX_NETW_CHANNELS];
-
-	/* Minimum channel time */
-	u16 active_min_ch_time;
-
-	/* Maximum channel time */
-	u16 active_max_ch_time;
-
-	/* Minimum channel time */
-	u16 passive_min_ch_time;
-
-	/* Maximum channel time */
-	u16 passive_max_ch_time;
-
-	/* Cb State */
-	enum phy_chan_bond_state state;
-} __packed;
-
-/* Update scan params - sent from host to PNO to be used during PNO
- * scanningx */
-struct wcn36xx_hal_update_scan_params_req_ex {
-
-	struct wcn36xx_hal_msg_header header;
-
-	/* Host setting for 11d */
-	u8 dot11d_enabled;
-
-	/* Lets PNO know that host has determined the regulatory domain */
-	u8 dot11d_resolved;
-
-	/* Channels on which PNO is allowed to scan */
-	u8 channel_count;
-	u8 channels[WCN36XX_HAL_PNO_MAX_NETW_CHANNELS_EX];
-
-	/* Minimum channel time */
-	u16 active_min_ch_time;
-
-	/* Maximum channel time */
-	u16 active_max_ch_time;
-
-	/* Minimum channel time */
-	u16 passive_min_ch_time;
-
-	/* Maximum channel time */
-	u16 passive_max_ch_time;
-
-	/* Cb State */
-	enum phy_chan_bond_state state;
-} __packed;
-
-/* Update scan params - sent from host to PNO to be used during PNO
- * scanningx */
-struct wcn36xx_hal_update_scan_params_resp {
-
-	struct wcn36xx_hal_msg_header header;
-
-	/* status of the request */
-	u32 status;
-} __packed;
-
 struct wcn36xx_hal_set_tx_per_tracking_req_msg {
 	struct wcn36xx_hal_msg_header header;
 
drivers/net/wireless/ath/wcn36xx/smd.c +0 -60

66 lines not on this page · raw message

drivers/net/wireless/ath/wcn36xx/smd.h +0 -1
index 2c1ed9e570bf..4e39df5589b3 100644
@@ -66,7 +66,6 @@ int wcn36xx_smd_finish_scan(struct wcn36xx *wcn, enum wcn36xx_hal_sys_mode mode,
 int wcn36xx_smd_init_scan(struct wcn36xx *wcn, enum wcn36xx_hal_sys_mode mode,
 			  struct ieee80211_vif *vif);
 
-int wcn36xx_smd_update_scan_params(struct wcn36xx *wcn, u8 *channels, size_t channel_count);
 int wcn36xx_smd_start_hw_scan(struct wcn36xx *wcn, struct ieee80211_vif *vif,
 			      struct cfg80211_scan_request *req);
 int wcn36xx_smd_stop_hw_scan(struct wcn36xx *wcn);
Signature · 1 line
2.51.0
maintainer Acked-by on v2 1/1
#1 lore raw
Quoted 8 lines · On Sat, Oct 11, 2025 at 2:10 AM <[email protected]> wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

wcn36xx_smd_update_scan_params() last use was removed in 2020 by commit 5973a2947430 ("wcn36xx: Fix software-driven scan")

Remove it.

Quoted 7 lines

This leaves the wcn36xx_hal_update_scan_params_req_ex and wcn36xx_hal_update_scan_params_resp structs unused.

Remove them, together with the unused
wcn36xx_hal_update_scan_params_req.

Applied
#2 lore raw
In reply to [email protected]
Quoted 9 lines · On Sat, 11 Oct 2025 01:10:38 +0100, [email protected] wrote:

wcn36xx_smd_update_scan_params() last use was removed in 2020 by commit 5973a2947430 ("wcn36xx: Fix software-driven scan")

Remove it.

This leaves the wcn36xx_hal_update_scan_params_req_ex and wcn36xx_hal_update_scan_params_resp structs unused.

[...]

Applied, thanks!

[1/1] wifi: wcn36xx: Remove unused wcn36xx_smd_update_scan_params

      commit: 4077d7fb27be990a8ddcff9b49f7e1788a960f3a

Best regards,

Signature · 1 line
Jeff Johnson <[email protected]>