wifi: wcn36xx: Remove unused wcn36xx_smd_update_scan_params
PATCH 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.
--- drivers/net/wireless/ath/wcn36xx/smd.c | 60 -------------------------- drivers/net/wireless/ath/wcn36xx/smd.h | 1 - 2 files changed, 61 deletions(-)
drivers/net/wireless/ath/wcn36xx/smd.c +0 -60
@@ -1127,66 +1127,6 @@ int wcn36xx_smd_process_ptt_msg(struct wcn36xx *wcn,return ret; } -static int wcn36xx_smd_update_scan_params_rsp (void *buf,size_t len) -{ -struct wcn36xx_hal_update_scan_params_resp *rsp; - - rsp = buf; - -/* Remove the PNO version bit */ - rsp->status &= (~(WCN36XX_FW_MSG_PNO_VERSION_MASK )); - -if (WCN36XX_FW_MSG_RESULT_SUCCESS != rsp->status) { -wcn36xx_warn ("error response from update scan\n" ); -return rsp->status; - } - -return 0 ; -} - -int wcn36xx_smd_update_scan_params (struct wcn36xx *wcn, -u8 *channels,size_t channel_count) -{ -struct wcn36xx_hal_update_scan_params_req_ex msg_body; -int ret; - -mutex_lock (&wcn->hal_mutex); -INIT_HAL_MSG (msg_body,WCN36XX_HAL_UPDATE_SCAN_PARAM_REQ ); - - msg_body.dot11d_enabled = false; - msg_body.dot11d_resolved = true; - - msg_body.channel_count = channel_count; -memcpy (msg_body.channels, channels, channel_count); - msg_body.active_min_ch_time =60 ; - msg_body.active_max_ch_time =120 ; - msg_body.passive_min_ch_time =60 ; - msg_body.passive_max_ch_time =110 ; - msg_body.state =PHY_SINGLE_CHANNEL_CENTERED ; - -PREPARE_HAL_BUF (wcn->hal_buf, msg_body); - -wcn36xx_dbg (WCN36XX_DBG_HAL , -"hal update scan params channel_count %d\n" , - msg_body.channel_count); - - ret =wcn36xx_smd_send_and_wait (wcn, msg_body.header.len); -if (ret) { -wcn36xx_err ("Sending hal_update_scan_params failed\n" ); - goto out; - } - ret =wcn36xx_smd_update_scan_params_rsp (wcn->hal_buf, - wcn->hal_rsp_len); -if (ret) { -wcn36xx_err ("hal_update_scan_params response failed err=%d\n" , - ret); - goto out; - } -out: -mutex_unlock (&wcn->hal_mutex); -return ret; -} - static int wcn36xx_smd_add_sta_self_rsp(struct wcn36xx *wcn, struct ieee80211_vif *vif, void *buf,
drivers/net/wireless/ath/wcn36xx/smd.h +0 -1
@@ -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.49.0
Quoted 9 lines · On Thu, Jun 19, 2025 at 3:05 AM <[email protected]> wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
wcn36xx_smd_update_scan_params()last use was removed in 2020 by commit5973a2947430("wcn36xx: Fix software-driven scan")Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
Quoted 91 lines
--- drivers/net/wireless/ath/wcn36xx/smd.c | 60 -------------------------- drivers/net/wireless/ath/wcn36xx/smd.h | 1 - 2 files changed, 61 deletions(-)drivers/net/wireless/ath/wcn36xx/smd.c +0
-60@@ -1127,66 +1127,6 @@ int wcn36xx_smd_process_ptt_msg(struct wcn36xx *wcn,return ret; } -static int wcn36xx_smd_update_scan_params_rsp (void *buf,size_t len) -{ -struct wcn36xx_hal_update_scan_params_resp *rsp; - - rsp = buf; - -/* Remove the PNO version bit */ - rsp->status &= (~(WCN36XX_FW_MSG_PNO_VERSION_MASK )); - -if (WCN36XX_FW_MSG_RESULT_SUCCESS != rsp->status) { -wcn36xx_warn ("error response from update scan\n" ); -return rsp->status; - } - -return 0 ; -} - -int wcn36xx_smd_update_scan_params (struct wcn36xx *wcn, -u8 *channels,size_t channel_count) -{ -struct wcn36xx_hal_update_scan_params_req_ex msg_body; -int ret; - -mutex_lock (&wcn->hal_mutex); -INIT_HAL_MSG (msg_body,WCN36XX_HAL_UPDATE_SCAN_PARAM_REQ ); - - msg_body.dot11d_enabled = false; - msg_body.dot11d_resolved = true; - - msg_body.channel_count = channel_count; -memcpy (msg_body.channels, channels, channel_count); - msg_body.active_min_ch_time =60 ; - msg_body.active_max_ch_time =120 ; - msg_body.passive_min_ch_time =60 ; - msg_body.passive_max_ch_time =110 ; - msg_body.state =PHY_SINGLE_CHANNEL_CENTERED ; - -PREPARE_HAL_BUF (wcn->hal_buf, msg_body); - -wcn36xx_dbg (WCN36XX_DBG_HAL , -"hal update scan params channel_count %d\n" , - msg_body.channel_count); - - ret =wcn36xx_smd_send_and_wait (wcn, msg_body.header.len); -if (ret) { -wcn36xx_err ("Sending hal_update_scan_params failed\n" ); - goto out; - } - ret =wcn36xx_smd_update_scan_params_rsp (wcn->hal_buf, - wcn->hal_rsp_len); -if (ret) { -wcn36xx_err ("hal_update_scan_params response failed err=%d\n" , - ret); - goto out; - } -out: -mutex_unlock (&wcn->hal_mutex); -return ret; -} - static int wcn36xx_smd_add_sta_self_rsp(struct wcn36xx *wcn, struct ieee80211_vif *vif, void *buf,drivers/net/wireless/ath/wcn36xx/smd.h +0
-2@@ -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); --2.49.0
Quoted 4 lines · * Loic Poulain ([email protected]) wrote:
Quoted 3 lines · On Thu, Jun 19, 2025 at 3:05 AM <[email protected]> wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
Quoted 8 lines
Quoted 6 lines
wcn36xx_smd_update_scan_params()last use was removed in 2020 by commit5973a2947430("wcn36xx: Fix software-driven scan")Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>Reviewed-by Loic Poulain <[email protected]>
Hi Loic,
Is this getting into a pull somewhere?
Dave
Quoted 93 lines
Quoted 92 lines
--- drivers/net/wireless/ath/wcn36xx/smd.c | 60 -------------------------- drivers/net/wireless/ath/wcn36xx/smd.h | 1 - 2 files changed, 61 deletions(-)drivers/net/wireless/ath/wcn36xx/smd.c +0
-60@@ -1127,66 +1127,6 @@ int wcn36xx_smd_process_ptt_msg(struct wcn36xx *wcn,return ret; } -static int wcn36xx_smd_update_scan_params_rsp (void *buf,size_t len) -{ -struct wcn36xx_hal_update_scan_params_resp *rsp; - - rsp = buf; - -/* Remove the PNO version bit */ - rsp->status &= (~(WCN36XX_FW_MSG_PNO_VERSION_MASK )); - -if (WCN36XX_FW_MSG_RESULT_SUCCESS != rsp->status) { -wcn36xx_warn ("error response from update scan\n" ); -return rsp->status; - } - -return 0 ; -} - -int wcn36xx_smd_update_scan_params (struct wcn36xx *wcn, -u8 *channels,size_t channel_count) -{ -struct wcn36xx_hal_update_scan_params_req_ex msg_body; -int ret; - -mutex_lock (&wcn->hal_mutex); -INIT_HAL_MSG (msg_body,WCN36XX_HAL_UPDATE_SCAN_PARAM_REQ ); - - msg_body.dot11d_enabled = false; - msg_body.dot11d_resolved = true; - - msg_body.channel_count = channel_count; -memcpy (msg_body.channels, channels, channel_count); - msg_body.active_min_ch_time =60 ; - msg_body.active_max_ch_time =120 ; - msg_body.passive_min_ch_time =60 ; - msg_body.passive_max_ch_time =110 ; - msg_body.state =PHY_SINGLE_CHANNEL_CENTERED ; - -PREPARE_HAL_BUF (wcn->hal_buf, msg_body); - -wcn36xx_dbg (WCN36XX_DBG_HAL , -"hal update scan params channel_count %d\n" , - msg_body.channel_count); - - ret =wcn36xx_smd_send_and_wait (wcn, msg_body.header.len); -if (ret) { -wcn36xx_err ("Sending hal_update_scan_params failed\n" ); - goto out; - } - ret =wcn36xx_smd_update_scan_params_rsp (wcn->hal_buf, - wcn->hal_rsp_len); -if (ret) { -wcn36xx_err ("hal_update_scan_params response failed err=%d\n" , - ret); - goto out; - } -out: -mutex_unlock (&wcn->hal_mutex); -return ret; -} - static int wcn36xx_smd_add_sta_self_rsp(struct wcn36xx *wcn, struct ieee80211_vif *vif, void *buf,drivers/net/wireless/ath/wcn36xx/smd.h +0
-2@@ -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); --2.49.0
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Loic Poulain
maintainerHi Jeff,
Quoted 9 lines · Dr. David Alan Gilbert
Quoted 7 lines · * Loic Poulain ([email protected]) wrote:
Quoted 6 lines · On Thu, Jun 19, 2025 at 3:05 AM <[email protected]> wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
wcn36xx_smd_update_scan_params()last use was removed in 2020 by commit5973a2947430("wcn36xx: Fix software-driven scan")
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>Reviewed-by Loic Poulain <[email protected]>Hi Loic,
Is this getting into a pull somewhere?
Can it be picked for ath10-next?
Regards,
Loic
Quoted 14 lines · Loic Poulain
Hi Jeff,
Quoted 11 lines · Dr. David Alan Gilbert
Quoted 9 lines · * Loic Poulain ([email protected]) wrote:
Quoted 8 lines · On Thu, Jun 19, 2025 at 3:05 AM <[email protected]> wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
wcn36xx_smd_update_scan_params()last use was removed in 2020 by commit5973a2947430("wcn36xx: Fix software-driven scan")Remove it.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Dr. David Alan Gilbert <[email protected]>Reviewed-by Loic Poulain <[email protected]>Hi Loic,
Is this getting into a pull somewhere?Can it be picked for ath10-next?
This was not on my radar since it wasn't sent to linux-wireless and hence isn't tracked in patchwork. I just looked at it and it seems the following are now also unused and could be removed:
struct wcn36xx_hal_update_scan_params_resp
struct wcn36xx_hal_update_scan_params_req_ex
Let me know if you want me to take this as-is or wait for a v2. If you send a v2 please also include linux-wireless so that it is tracked by patchwork.
/jeff
Quoted 22 lines · * Jeff Johnson ([email protected]) wrote:
Quoted 21 lines · Loic Poulain
Hi Jeff,
Quoted 17 lines · Dr. David Alan Gilbert
Quoted 4 lines · * Loic Poulain ([email protected]) wrote:
Quoted 3 lines · On Thu, Jun 19, 2025 at 3:05 AM <[email protected]> wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
Quoted 8 lines
Quoted 6 lines
wcn36xx_smd_update_scan_params()last use was removed in 2020 by commit5973a2947430("wcn36xx: Fix software-driven scan")Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>Reviewed-by Loic Poulain <[email protected]>Hi Loic,
Is this getting into a pull somewhere?
Quoted 7 lines
Quoted 1 line
Can it be picked for ath10-next?
This was not on my radar since it wasn't sent to linux-wireless and hence isn't tracked in patchwork. I just looked at it and it seems the following are now also unused and could be removed:
structwcn36xx_hal_update_scan_params_resp
structwcn36xx_hal_update_scan_params_req_ex
Oh, I'm happy to cook a v2 for that if Loic agrees they should go
(I know some drivers like to keep struct definitions if they document the hardware)
Quoted 2 lines
Let me know if you want me to take this as-is or wait for a v2. If you send a v2 please also include linux-wireless so that it is tracked by patchwork.
Sure.
Note that linux-wireless isn't included in get_maintainer output for this:
$ scripts/get_maintainer.pl -f drivers/net/wireless/ath/wcn36xx/smd.c Loic Poulain <[email protected]> (maintainer:QUALCOMM WCN36XX WIRELESS DRIVER) [email protected] (open list:QUALCOMM WCN36XX WIRELESS DRIVER) [email protected] (open list) QUALCOMM WCN36XX WIRELESS DRIVER status: Supported
Dave
Quoted 1 line
/jeff
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Loic Poulain
maintainerHi Dave,
Quoted 26 lines · Dr. David Alan Gilbert
Quoted 24 lines · * Jeff Johnson ([email protected]) wrote:
Quoted 22 lines · Loic Poulain
Hi Jeff,
Quoted 9 lines · Dr. David Alan Gilbert
Quoted 7 lines · * Loic Poulain ([email protected]) wrote:
Quoted 6 lines · On Thu, Jun 19, 2025 at 3:05 AM <[email protected]> wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
wcn36xx_smd_update_scan_params()last use was removed in 2020 by commit5973a2947430("wcn36xx: Fix software-driven scan")Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>Reviewed-by Loic Poulain <[email protected]>Hi Loic,
Is this getting into a pull somewhere?Can it be picked for ath10-next?
Quoted 8 lines
Quoted 5 lines
This was not on my radar since it wasn't sent to linux-wireless and hence isn't tracked in patchwork. I just looked at it and it seems the following are now also unused and could be removed:
structwcn36xx_hal_update_scan_params_resp
structwcn36xx_hal_update_scan_params_req_exOh, I'm happy to cook a v2 for that if Loic agrees they should go
(I know some drivers like to keep struct definitions if they document the hardware)
The software based scanning never worked very well, so I'm not even sure the related structs are correct or complete, so it's ok to remove in your v2.
Quoted 5 lines
Quoted 2 lines
Let me know if you want me to take this as-is or wait for a v2. If you send a v2 please also include linux-wireless so that it is tracked by patchwork.
Sure.
Quoted 7 lines
Note that linux-wireless isn't included in
get_maintaineroutput for this:$ scripts/get_maintainer.pl -f drivers/net/wireless/ath/wcn36xx/smd.c Loic Poulain <[email protected]> (maintainer:QUALCOMM WCN36XX WIRELESS DRIVER) [email protected] (open list:QUALCOMM WCN36XX WIRELESS DRIVER) [email protected] (open list) QUALCOMM WCN36XX WIRELESS DRIVER status: Supported
Indeed, would you mind submitting a fix for the MAINTAINERS file?
Regards,
Loic
Quoted 36 lines · * Loic Poulain ([email protected]) wrote:
Hi Dave,
Quoted 32 lines · Dr. David Alan Gilbert
Quoted 29 lines · * Jeff Johnson ([email protected]) wrote:
Quoted 14 lines · Loic Poulain
Hi Jeff,
Quoted 11 lines · Dr. David Alan Gilbert
Quoted 9 lines · * Loic Poulain ([email protected]) wrote:
Quoted 8 lines · On Thu, Jun 19, 2025 at 3:05 AM <[email protected]> wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
wcn36xx_smd_update_scan_params()last use was removed in 2020 by commit5973a2947430("wcn36xx: Fix software-driven scan")Remove it.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Dr. David Alan Gilbert <[email protected]>Reviewed-by Loic Poulain <[email protected]>Hi Loic,
Is this getting into a pull somewhere?Can it be picked for ath10-next?
This was not on my radar since it wasn't sent to linux-wireless and hence isn't tracked in patchwork. I just looked at it and it seems the following are now also unused and could be removed:
structwcn36xx_hal_update_scan_params_resp
structwcn36xx_hal_update_scan_params_req_ex
Quoted 6 lines
Quoted 2 lines
Oh, I'm happy to cook a v2 for that if Loic agrees they should go
(I know some drivers like to keep struct definitions if they document the hardware)The software based scanning never worked very well, so I'm not even sure the related structs are correct or complete, so it's ok to remove in your v2.
Sure.
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Let me know if you want me to take this as-is or wait for a v2. If you send a v2 please also include linux-wireless so that it is tracked by patchwork.
Sure.
Note that linux-wireless isn't included in
get_maintaineroutput for this:
Quoted 7 lines
Quoted 5 lines
$ scripts/get_maintainer.pl -f drivers/net/wireless/ath/wcn36xx/smd.c Loic Poulain <[email protected]> (maintainer:QUALCOMM WCN36XX WIRELESS DRIVER) [email protected] (open list:QUALCOMM WCN36XX WIRELESS DRIVER) [email protected] (open list) QUALCOMM WCN36XX WIRELESS DRIVER status: SupportedIndeed, would you mind submitting a fix for the
MAINTAINERSfile?
No problem.
I'll cook a pair of patches.
Dave
Quoted 3 lines
Regards,
Loic
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/