linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • * Re: [RESEND 1/2] ath11k: add WMI calls to manually add/del/pause/resume
           [not found] <20200624080321.2271943-1-john@phrozen.org>
           [not found] ` <20200624080321.2271943-2-john@phrozen.org>
    @ 2020-07-16  7:50 ` Kalle Valo
      1 sibling, 0 replies; 2+ messages in thread
    From: Kalle Valo @ 2020-07-16  7:50 UTC (permalink / raw)
      To: John Crispin; +Cc: ath11k, linux-wireless
    
    + linux-wireless
    
    John Crispin <john@phrozen.org> writes:
    
    > These calls are used for debugging and will be required for WFA
    > certification tests.
    >
    > Signed-off-by: John Crispin <john@phrozen.org>
    
    [...]
    
    > +static void ath11k_wmi_twt_add_dialog_event(struct ath11k_base *ab, struct sk_buff *skb)
    > +{
    > +	static const char * const status[] = {
    > +		"OK", "TWT_NOT_ENABLED", "USED_DIALOG_ID", "INVALID_PARAM",
    > +		"NOT_READY", "NO_RESOURCE", "NO_ACK", "NO_RESPONSE",
    > +		"DENIED", "UNKNOWN_ERROR"
    > +	};
    > +	const void **tb;
    > +	const struct wmi_twt_add_dialog_event *ev;
    > +	int ret;
    > +
    > +	tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC);
    > +	if (IS_ERR(tb)) {
    > +		ret = PTR_ERR(tb);
    > +		ath11k_warn(ab, "failed to parse tlv: %d\n", ret);
    > +		return;
    > +	}
    > +
    > +	ev = tb[WMI_TAG_TWT_ADD_DIALOG_COMPLETE_EVENT];
    > +	if (!ev) {
    > +		ath11k_warn(ab, "failed to fetch twt add dialog ev");
    > +		goto exit;
    > +	}
    > +
    > +	ath11k_info(ab, "TWT Add Dialog Event - Status: %s, DialogId: %d, VdevId: %d\n",
    > +		    status[ev->status], ev->vdev_id, ev->dialog_id);
    
    Shouldn't this be a debug message? The info level should be used very
    sparingly.
    
    -- 
    https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
    
    ^ permalink raw reply	[flat|nested] 2+ messages in thread

  • end of thread, other threads:[~2020-07-16  7:51 UTC | newest]
    
    Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20200624080321.2271943-1-john@phrozen.org>
         [not found] ` <20200624080321.2271943-2-john@phrozen.org>
    2020-07-16  7:47   ` [RESEND 2/2] ath11k: add debugfs for TWT debug calls Kalle Valo
    2020-07-16  7:50 ` [RESEND 1/2] ath11k: add WMI calls to manually add/del/pause/resume Kalle Valo
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).