From patchwork Thu Jul 21 15:39:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bob Copeland X-Patchwork-Id: 9241867 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C5F6D607D3 for ; Thu, 21 Jul 2016 15:40:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEB1327C0B for ; Thu, 21 Jul 2016 15:40:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A156B27EE2; Thu, 21 Jul 2016 15:40:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E317E27C0B for ; Thu, 21 Jul 2016 15:40:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753255AbcGUPkI (ORCPT ); Thu, 21 Jul 2016 11:40:08 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:35474 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753147AbcGUPkG (ORCPT ); Thu, 21 Jul 2016 11:40:06 -0400 Received: by mail-qk0-f194.google.com with SMTP id q62so6640731qkf.2 for ; Thu, 21 Jul 2016 08:40:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bobcopeland-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=hZWoUHsWr6CCZpC4isli8gSLSJQq0BK54F9ZpG7A3fY=; b=KMtKOWBL8SZgZiOMcVYX/cL7ppwdMlarBsiFtzrysS97mCLXQ9mYza7STclrd3oxbG 7hltCjMW8LFYrvaXVQJt+TIw/5CrFRLCXh5+j2Q2XCaSNM9EENSu7/QD/Wgfhpc2wpfF 40P6o8gzdjNtKC0gHI4PmY4QQPybLXSXe58N6bG9z8G2SriDAzzZoU9yTdvCOj2UeorR EM7nOxPgh2olrRqbBCqRwULrDP6iAC7+Y0guBKM8JbxCwwu2lz0CC6/cjcEwldxkjAjK wl56VDeo2riLjC/AApQckg8/IE4oCw/nktwNLr84FVICS9Nrm32EmnC3eCpqTH/AFd2o CSnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hZWoUHsWr6CCZpC4isli8gSLSJQq0BK54F9ZpG7A3fY=; b=JyU5PL5n74YCtbuV5zBTHFoxJA6a29KKu6ESFpN1AiBJS4MlDx3p1+1Ef/Kcs51VlP QuM0Hzr8q9Ogf1wuX26J7Xpmfsz3xQo1qk6dmKLjbMUWxuWIUD0j4tKBbPK0iJ9t59VI 4i5DJXdNhpHQkRlkMriqTeKrF7VckQdfIxbpZiin4eev6doR+r1GfM4+SbzEHoRBEXQr ZePqR0bWhZ25tpQf1V+UvX0j7zp5I9hi3fEq/1vIMtq0tHGuiHsTv0XtX0iNesLXbEP8 UXJK6n0R0AOybZhKesGbAzdAVWA72fFNn2YqM0wMx9cFyW+dKJrCusQJL7/WXEl+TrTd SLpQ== X-Gm-Message-State: ALyK8tIMXVNlnQpyoMSE979DYA38sxaz0Ni5igECbn3pOUvPJ4PWhAWyVTwW+E/gVGvbLw== X-Received: by 10.55.187.4 with SMTP id l4mr71137310qkf.152.1469115604957; Thu, 21 Jul 2016 08:40:04 -0700 (PDT) Received: from hash (CPE0018e7fe5281-CM18593342f28f.cpe.net.cable.rogers.com. [99.254.238.186]) by smtp.gmail.com with ESMTPSA id t82sm4685158qke.9.2016.07.21.08.40.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jul 2016 08:40:04 -0700 (PDT) Received: from bob by hash with local (Exim 4.84_2) (envelope-from ) id 1bQG4t-0008Nd-1J; Thu, 21 Jul 2016 11:39:59 -0400 From: Bob Copeland To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Bob Copeland Subject: [PATCH] iw: display 5/10 MHz channel widths Date: Thu, 21 Jul 2016 11:39:48 -0400 Message-Id: <20160721153948.32171-1-me@bobcopeland.com> X-Mailer: git-send-email 2.9.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP iw was showing 'width: unknown' for channels on OCB interfaces; teach it the values for 5/10 MHz so it will show the configured width. Signed-off-by: Bob Copeland --- interface.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface.c b/interface.c index 209561d..2802235 100644 --- a/interface.c +++ b/interface.c @@ -295,6 +295,10 @@ char *channel_width_name(enum nl80211_chan_width width) return "80+80 MHz"; case NL80211_CHAN_WIDTH_160: return "160 MHz"; + case NL80211_CHAN_WIDTH_5: + return "5 MHz"; + case NL80211_CHAN_WIDTH_10: + return "10 MHz"; default: return "unknown"; }