Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8748851ybi; Thu, 6 Jun 2019 19:15:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwS0uPWiiayQ/CduvVV6DQWtQsZw5s7dROKiis0mpBnvWm70wvywMB4wOVyL+RsxTmjt4c4 X-Received: by 2002:a17:902:9885:: with SMTP id s5mr53230796plp.102.1559873709299; Thu, 06 Jun 2019 19:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559873709; cv=none; d=google.com; s=arc-20160816; b=OdIi2IKx6DgQjixfruyQNdzkdror+wMyjTSSPo/yBi32GN+2NMqnuLyY50DfpUXFVb o3s+aLUo9FODfNLCgQCIaa6h6f8viJqh3tgizVcx3cRKTU+klwKCf9GUlrnmjTa7yO5R ACN1WtJo3AzIsnOiPaMdrja0z1/9KsGY5XQUv03Svz9kqd2bkfYh4VmZznSBKtbsdL8Q UvPaa1bxj8fzOmvHXocLH4dybNQ0Ta2kI2Onv4mpzCnHT5+n8EmNXBM6lTJKCogXAid2 +kTdFHa1nAM29+CJefIVoZCK3tCwlQ1QInd4bejNeWop2SNv6x3AZgBkBZXzmnTBCu10 4zRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=zpqqmhqxvpaKm/xArDKMLy5VXr6WblTv8mOWhWIo6mU=; b=elSQ/qdVOP7pUxBS5D4KmiPerAGpWdXyT8czvBHlqQ0iGult+tvJIpAeq0dBfJrVhx ZWLaKQZ5XUXv3gT08ULpdjuYTXFAtI5yuLL4Q2SHmmJm/lE13n8amF6DjcpHqDxhQCD+ BU093UELbMin/75QgNmbCLRCb6B7PAsPD1EQFOzsrG/xlM58KexHgAT6LYIFN674+j/Q XH5JsV44/K71tGzDwpgAmhlSbp71iDl4WTlRb0BolwsbOd8xBulkuUd3VvdPsNGFhGyd Hbrji5bQ1H/DsIXiMQSgVQCnSVVr98vcHAQTL9o/MRrYbYg4PBsfDVTj4nSQxd2IyrQV /H3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y82si604112pfb.58.2019.06.06.19.14.38; Thu, 06 Jun 2019 19:15:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726613AbfFGCL6 (ORCPT + 99 others); Thu, 6 Jun 2019 22:11:58 -0400 Received: from smtprelay0105.hostedemail.com ([216.40.44.105]:34873 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725784AbfFGCL6 (ORCPT ); Thu, 6 Jun 2019 22:11:58 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id 21E89181D3419; Fri, 7 Jun 2019 02:11:57 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1515:1516:1518:1534:1538:1568:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3622:3865:3868:4321:5007:6119:10004:10400:10848:11026:11232:11473:11658:11914:12043:12438:12555:12740:12760:12895:13069:13311:13357:13439:14659:21080:21627:30054:30091,0,RBL:23.242.196.136:@perches.com:.lbl8.mailshell.net-62.8.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:27,LUA_SUMMARY:none X-HE-Tag: crate03_4b162def26913 X-Filterd-Recvd-Size: 1418 Received: from XPS-9350 (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf05.hostedemail.com (Postfix) with ESMTPA; Fri, 7 Jun 2019 02:11:55 +0000 (UTC) Message-ID: Subject: Re: [PATCH V2] iw: print HE capabilities From: Joe Perches To: John Crispin , Johannes Berg Cc: linux-wireless@vger.kernel.org, Shashidhar Lakkavalli Date: Thu, 06 Jun 2019 19:11:53 -0700 In-Reply-To: <20190528065828.25356-1-john@phrozen.org> References: <20190528065828.25356-1-john@phrozen.org> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.5-0ubuntu0.18.10.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 2019-05-28 at 08:58 +0200, John Crispin wrote: > Print the HE MAC/PHY capabilities and MCS/NSS sets. trivia: > diff --git a/util.c b/util.c [] > +void print_he_info(struct nlattr *nl_iftype) > +{ > + struct nlattr *tb[NL80211_BAND_IFTYPE_ATTR_MAX + 1]; > + struct nlattr *tb_flags[NL80211_IFTYPE_MAX + 1]; > + char *iftypes[NUM_NL80211_IFTYPES] = { > + "Unspec", "Adhoc", "Station", "AP", "AP/VLAN", "WDS", "Monitor", > + "Mesh", "P2P/Client", "P2P/Go", "P2P/Device", "OCB", "NAN", > + }; Should probably be const char * const iftypes[...]