public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wifi: wcn36xx: Remove unused wcn36xx_smd_update_scan_params
@ 2025-06-19  1:05 linux
  2025-06-22  9:10 ` Loic Poulain
  0 siblings, 1 reply; 8+ messages in thread
From: linux @ 2025-06-19  1:05 UTC (permalink / raw)
  To: loic.poulain, wcn36xx; +Cc: linux-kernel, Dr. David Alan Gilbert

From: "Dr. David Alan Gilbert" <linux@treblig.org>

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

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
 drivers/net/wireless/ath/wcn36xx/smd.c | 60 --------------------------
 drivers/net/wireless/ath/wcn36xx/smd.h |  1 -
 2 files changed, 61 deletions(-)

diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c
index 2cf86fc3f8fe..136acc414714 100644
--- a/drivers/net/wireless/ath/wcn36xx/smd.c
+++ b/drivers/net/wireless/ath/wcn36xx/smd.c
@@ -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,
diff --git a/drivers/net/wireless/ath/wcn36xx/smd.h b/drivers/net/wireless/ath/wcn36xx/smd.h
index 2c1ed9e570bf..4e39df5589b3 100644
--- a/drivers/net/wireless/ath/wcn36xx/smd.h
+++ b/drivers/net/wireless/ath/wcn36xx/smd.h
@@ -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


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] wifi: wcn36xx: Remove unused wcn36xx_smd_update_scan_params
  2025-06-19  1:05 [PATCH] wifi: wcn36xx: Remove unused wcn36xx_smd_update_scan_params linux
@ 2025-06-22  9:10 ` Loic Poulain
  2025-10-09 15:25   ` Dr. David Alan Gilbert
  0 siblings, 1 reply; 8+ messages in thread
From: Loic Poulain @ 2025-06-22  9:10 UTC (permalink / raw)
  To: linux; +Cc: wcn36xx, linux-kernel

On Thu, Jun 19, 2025 at 3:05 AM <linux@treblig.org> wrote:
>
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> wcn36xx_smd_update_scan_params() last use was removed in 2020 by
> commit 5973a2947430 ("wcn36xx: Fix software-driven scan")
>
> Remove it.
>
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>

Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com>


> ---
>  drivers/net/wireless/ath/wcn36xx/smd.c | 60 --------------------------
>  drivers/net/wireless/ath/wcn36xx/smd.h |  1 -
>  2 files changed, 61 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c
> index 2cf86fc3f8fe..136acc414714 100644
> --- a/drivers/net/wireless/ath/wcn36xx/smd.c
> +++ b/drivers/net/wireless/ath/wcn36xx/smd.c
> @@ -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,
> diff --git a/drivers/net/wireless/ath/wcn36xx/smd.h b/drivers/net/wireless/ath/wcn36xx/smd.h
> index 2c1ed9e570bf..4e39df5589b3 100644
> --- a/drivers/net/wireless/ath/wcn36xx/smd.h
> +++ b/drivers/net/wireless/ath/wcn36xx/smd.h
> @@ -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
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] wifi: wcn36xx: Remove unused wcn36xx_smd_update_scan_params
  2025-06-22  9:10 ` Loic Poulain
@ 2025-10-09 15:25   ` Dr. David Alan Gilbert
  2025-10-09 22:15     ` Loic Poulain
  0 siblings, 1 reply; 8+ messages in thread
From: Dr. David Alan Gilbert @ 2025-10-09 15:25 UTC (permalink / raw)
  To: Loic Poulain; +Cc: wcn36xx, linux-kernel

* Loic Poulain (loic.poulain@oss.qualcomm.com) wrote:
> On Thu, Jun 19, 2025 at 3:05 AM <linux@treblig.org> wrote:
> >
> > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> >
> > wcn36xx_smd_update_scan_params() last use was removed in 2020 by
> > commit 5973a2947430 ("wcn36xx: Fix software-driven scan")
> >
> > Remove it.
> >
> > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> 
> Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com>

Hi Loic,
  Is this getting into a pull somewhere?

Dave

> 
> > ---
> >  drivers/net/wireless/ath/wcn36xx/smd.c | 60 --------------------------
> >  drivers/net/wireless/ath/wcn36xx/smd.h |  1 -
> >  2 files changed, 61 deletions(-)
> >
> > diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c
> > index 2cf86fc3f8fe..136acc414714 100644
> > --- a/drivers/net/wireless/ath/wcn36xx/smd.c
> > +++ b/drivers/net/wireless/ath/wcn36xx/smd.c
> > @@ -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,
> > diff --git a/drivers/net/wireless/ath/wcn36xx/smd.h b/drivers/net/wireless/ath/wcn36xx/smd.h
> > index 2c1ed9e570bf..4e39df5589b3 100644
> > --- a/drivers/net/wireless/ath/wcn36xx/smd.h
> > +++ b/drivers/net/wireless/ath/wcn36xx/smd.h
> > @@ -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
> >
> 
-- 
 -----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   |_______/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] wifi: wcn36xx: Remove unused wcn36xx_smd_update_scan_params
  2025-10-09 15:25   ` Dr. David Alan Gilbert
@ 2025-10-09 22:15     ` Loic Poulain
  2025-10-10  0:08       ` Jeff Johnson
  0 siblings, 1 reply; 8+ messages in thread
From: Loic Poulain @ 2025-10-09 22:15 UTC (permalink / raw)
  To: Jeff Johnson; +Cc: wcn36xx, linux-kernel, Dr. David Alan Gilbert

Hi Jeff,

On Thu, Oct 9, 2025 at 5:25 PM Dr. David Alan Gilbert <linux@treblig.org> wrote:
>
> * Loic Poulain (loic.poulain@oss.qualcomm.com) wrote:
> > On Thu, Jun 19, 2025 at 3:05 AM <linux@treblig.org> wrote:
> > >
> > > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> > >
> > > wcn36xx_smd_update_scan_params() last use was removed in 2020 by
> > > commit 5973a2947430 ("wcn36xx: Fix software-driven scan")
> > >
> > > Remove it.
> > >
> > > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> >
> > Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
>
> Hi Loic,
>   Is this getting into a pull somewhere?

Can it be picked for ath10-next?

Regards,
Loic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] wifi: wcn36xx: Remove unused wcn36xx_smd_update_scan_params
  2025-10-09 22:15     ` Loic Poulain
@ 2025-10-10  0:08       ` Jeff Johnson
  2025-10-10  0:46         ` Dr. David Alan Gilbert
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff Johnson @ 2025-10-10  0:08 UTC (permalink / raw)
  To: Loic Poulain, Jeff Johnson; +Cc: wcn36xx, linux-kernel, Dr. David Alan Gilbert

On 10/9/2025 3:15 PM, Loic Poulain wrote:
> Hi Jeff,
> 
> On Thu, Oct 9, 2025 at 5:25 PM Dr. David Alan Gilbert <linux@treblig.org> wrote:
>>
>> * Loic Poulain (loic.poulain@oss.qualcomm.com) wrote:
>>> On Thu, Jun 19, 2025 at 3:05 AM <linux@treblig.org> wrote:
>>>>
>>>> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>>>>
>>>> wcn36xx_smd_update_scan_params() last use was removed in 2020 by
>>>> commit 5973a2947430 ("wcn36xx: Fix software-driven scan")
>>>>
>>>> Remove it.
>>>>
>>>> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
>>>
>>> Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
>>
>> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] wifi: wcn36xx: Remove unused wcn36xx_smd_update_scan_params
  2025-10-10  0:08       ` Jeff Johnson
@ 2025-10-10  0:46         ` Dr. David Alan Gilbert
  2025-10-10 19:13           ` Loic Poulain
  0 siblings, 1 reply; 8+ messages in thread
From: Dr. David Alan Gilbert @ 2025-10-10  0:46 UTC (permalink / raw)
  To: Jeff Johnson; +Cc: Loic Poulain, Jeff Johnson, wcn36xx, linux-kernel

* Jeff Johnson (jeff.johnson@oss.qualcomm.com) wrote:
> On 10/9/2025 3:15 PM, Loic Poulain wrote:
> > Hi Jeff,
> > 
> > On Thu, Oct 9, 2025 at 5:25 PM Dr. David Alan Gilbert <linux@treblig.org> wrote:
> >>
> >> * Loic Poulain (loic.poulain@oss.qualcomm.com) wrote:
> >>> On Thu, Jun 19, 2025 at 3:05 AM <linux@treblig.org> wrote:
> >>>>
> >>>> From: "Dr. David Alan Gilbert" <linux@treblig.org>
> >>>>
> >>>> wcn36xx_smd_update_scan_params() last use was removed in 2020 by
> >>>> commit 5973a2947430 ("wcn36xx: Fix software-driven scan")
> >>>>
> >>>> Remove it.
> >>>>
> >>>> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> >>>
> >>> Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
> >>
> >> 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

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)

> 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 <loic.poulain@oss.qualcomm.com> (maintainer:QUALCOMM WCN36XX WIRELESS DRIVER)
wcn36xx@lists.infradead.org (open list:QUALCOMM WCN36XX WIRELESS DRIVER)
linux-kernel@vger.kernel.org (open list)
QUALCOMM WCN36XX WIRELESS DRIVER status: Supported

Dave

> /jeff
-- 
 -----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   |_______/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] wifi: wcn36xx: Remove unused wcn36xx_smd_update_scan_params
  2025-10-10  0:46         ` Dr. David Alan Gilbert
@ 2025-10-10 19:13           ` Loic Poulain
  2025-10-10 20:07             ` Dr. David Alan Gilbert
  0 siblings, 1 reply; 8+ messages in thread
From: Loic Poulain @ 2025-10-10 19:13 UTC (permalink / raw)
  To: Dr. David Alan Gilbert, Jeff Johnson; +Cc: Jeff Johnson, wcn36xx, linux-kernel

Hi Dave,

On Fri, Oct 10, 2025 at 2:46 AM Dr. David Alan Gilbert
<linux@treblig.org> wrote:
>
> * Jeff Johnson (jeff.johnson@oss.qualcomm.com) wrote:
> > On 10/9/2025 3:15 PM, Loic Poulain wrote:
> > > Hi Jeff,
> > >
> > > On Thu, Oct 9, 2025 at 5:25 PM Dr. David Alan Gilbert <linux@treblig.org> wrote:
> > >>
> > >> * Loic Poulain (loic.poulain@oss.qualcomm.com) wrote:
> > >>> On Thu, Jun 19, 2025 at 3:05 AM <linux@treblig.org> wrote:
> > >>>>
> > >>>> From: "Dr. David Alan Gilbert" <linux@treblig.org>
> > >>>>
> > >>>> wcn36xx_smd_update_scan_params() last use was removed in 2020 by
> > >>>> commit 5973a2947430 ("wcn36xx: Fix software-driven scan")
> > >>>>
> > >>>> Remove it.
> > >>>>
> > >>>> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> > >>>
> > >>> Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
> > >>
> > >> 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
>
> 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.

> > 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 <loic.poulain@oss.qualcomm.com> (maintainer:QUALCOMM WCN36XX WIRELESS DRIVER)
> wcn36xx@lists.infradead.org (open list:QUALCOMM WCN36XX WIRELESS DRIVER)
> linux-kernel@vger.kernel.org (open list)
> QUALCOMM WCN36XX WIRELESS DRIVER status: Supported

Indeed, would you mind submitting a fix for the MAINTAINERS file?

Regards,
Loic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] wifi: wcn36xx: Remove unused wcn36xx_smd_update_scan_params
  2025-10-10 19:13           ` Loic Poulain
@ 2025-10-10 20:07             ` Dr. David Alan Gilbert
  0 siblings, 0 replies; 8+ messages in thread
From: Dr. David Alan Gilbert @ 2025-10-10 20:07 UTC (permalink / raw)
  To: Loic Poulain; +Cc: Jeff Johnson, Jeff Johnson, wcn36xx, linux-kernel

* Loic Poulain (loic.poulain@oss.qualcomm.com) wrote:
> Hi Dave,
> 
> On Fri, Oct 10, 2025 at 2:46 AM Dr. David Alan Gilbert
> <linux@treblig.org> wrote:
> >
> > * Jeff Johnson (jeff.johnson@oss.qualcomm.com) wrote:
> > > On 10/9/2025 3:15 PM, Loic Poulain wrote:
> > > > Hi Jeff,
> > > >
> > > > On Thu, Oct 9, 2025 at 5:25 PM Dr. David Alan Gilbert <linux@treblig.org> wrote:
> > > >>
> > > >> * Loic Poulain (loic.poulain@oss.qualcomm.com) wrote:
> > > >>> On Thu, Jun 19, 2025 at 3:05 AM <linux@treblig.org> wrote:
> > > >>>>
> > > >>>> From: "Dr. David Alan Gilbert" <linux@treblig.org>
> > > >>>>
> > > >>>> wcn36xx_smd_update_scan_params() last use was removed in 2020 by
> > > >>>> commit 5973a2947430 ("wcn36xx: Fix software-driven scan")
> > > >>>>
> > > >>>> Remove it.
> > > >>>>
> > > >>>> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> > > >>>
> > > >>> Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
> > > >>
> > > >> 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
> >
> > 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.

> > > 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 <loic.poulain@oss.qualcomm.com> (maintainer:QUALCOMM WCN36XX WIRELESS DRIVER)
> > wcn36xx@lists.infradead.org (open list:QUALCOMM WCN36XX WIRELESS DRIVER)
> > linux-kernel@vger.kernel.org (open list)
> > QUALCOMM WCN36XX WIRELESS DRIVER status: Supported
> 
> Indeed, would you mind submitting a fix for the MAINTAINERS file?

No problem.

I'll cook a pair of patches.

Dave

> Regards,
> Loic
> 
-- 
 -----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   |_______/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-10-10 20:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-19  1:05 [PATCH] wifi: wcn36xx: Remove unused wcn36xx_smd_update_scan_params linux
2025-06-22  9:10 ` Loic Poulain
2025-10-09 15:25   ` Dr. David Alan Gilbert
2025-10-09 22:15     ` Loic Poulain
2025-10-10  0:08       ` Jeff Johnson
2025-10-10  0:46         ` Dr. David Alan Gilbert
2025-10-10 19:13           ` Loic Poulain
2025-10-10 20:07             ` Dr. David Alan Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox