+ linux-wireless John Crispin <john@xxxxxxxxxxx> writes: > These calls are used for debugging and will be required for WFA > certification tests. > > Signed-off-by: John Crispin <john@xxxxxxxxxxx> [...] > +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