All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Nicolas Escande" <nico.escande@gmail.com>
To: "Kang Yang" <quic_kangyang@quicinc.com>, <ath12k@lists.infradead.org>
Cc: <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH v2] wifi: ath12k: add support to handle beacon miss for WCN7850
Date: Fri, 12 Apr 2024 11:23:43 +0200	[thread overview]
Message-ID: <D0I19V0104BZ.IN8THB2XCFLV@gmail.com> (raw)
In-Reply-To: <6ee5664b-997b-45eb-89f9-5f75708c268a@quicinc.com>

On Fri Apr 12, 2024 at 10:47 AM CEST, Kang Yang wrote:
>
>
> On 4/12/2024 3:33 PM, Nicolas Escande wrote:
> > On Fri Apr 12, 2024 at 4:51 AM CEST, kangyang wrote:
> > [...]
> >> @@ -5986,6 +6055,20 @@ static int ath12k_mac_vdev_create(struct ath12k *ar, struct ieee80211_vif *vif)
> >>   	lockdep_assert_held(&ar->conf_mutex);
> >>   
> >>   	arvif->ar = ar;
> >> +	arvif->vif = vif;
> >> +
> >> +	INIT_LIST_HEAD(&arvif->list);
> >> +	INIT_DELAYED_WORK(&arvif->connection_loss_work,
> >> +			  ath12k_mac_vif_sta_connection_loss_work);
> >> +
> > Is there a need to move the following part ?
> > Isn't just adding the delay work enough ?
>
>
> Just checked, you are right, but should add delay work in add_interface().
>
> Will change in v3.
>
>
> >> +	for (i = 0; i < ARRAY_SIZE(arvif->bitrate_mask.control); i++) {
> >> +		arvif->bitrate_mask.control[i].legacy = 0xffffffff;
> >> +		memset(arvif->bitrate_mask.control[i].ht_mcs, 0xff,
> >> +		       sizeof(arvif->bitrate_mask.control[i].ht_mcs));
> >> +		memset(arvif->bitrate_mask.control[i].vht_mcs, 0xff,
> >> +		       sizeof(arvif->bitrate_mask.control[i].vht_mcs));
> >> +	}
> >> +
> >>   	vdev_id = __ffs64(ab->free_vdev_map);
> >>   	arvif->vdev_id = vdev_id;
> >>   	arvif->vdev_subtype = WMI_VDEV_SUBTYPE_NONE;
> >> @@ -6316,16 +6399,6 @@ static int ath12k_mac_op_add_interface(struct ieee80211_hw *hw,
> >>   
> >>   	arvif->vif = vif;
> >>   
> >> -	INIT_LIST_HEAD(&arvif->list);
> >> -
> >> -	for (i = 0; i < ARRAY_SIZE(arvif->bitrate_mask.control); i++) {
> >> -		arvif->bitrate_mask.control[i].legacy = 0xffffffff;
> >> -		memset(arvif->bitrate_mask.control[i].ht_mcs, 0xff,
> >> -		       sizeof(arvif->bitrate_mask.control[i].ht_mcs));
> >> -		memset(arvif->bitrate_mask.control[i].vht_mcs, 0xff,
> >> -		       sizeof(arvif->bitrate_mask.control[i].vht_mcs));
> >> -	}
> >> -
> >>   	/* Allocate Default Queue now and reassign during actual vdev create */
> >>   	vif->cab_queue = ATH12K_HW_DEFAULT_QUEUE;
> >>   	for (i = 0; i < ARRAY_SIZE(vif->hw_queue); i++)
> > [...]
> > 
> > Thanks

Yeah, I wasn't clear enough, I meant adding the INIT_DELAY_WORK without moving
the rest of the code around. 

Thanks


  reply	other threads:[~2024-04-12  9:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-12  2:51 [PATCH v2] wifi: ath12k: add support to handle beacon miss for WCN7850 kangyang
2024-04-12  7:33 ` Nicolas Escande
2024-04-12  8:47   ` Kang Yang
2024-04-12  9:23     ` Nicolas Escande [this message]
2024-04-12  9:50       ` quic_kangyang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D0I19V0104BZ.IN8THB2XCFLV@gmail.com \
    --to=nico.escande@gmail.com \
    --cc=ath12k@lists.infradead.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=quic_kangyang@quicinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.