Message ID | 20190328135555.12638-1-robimarko@gmail.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="urEiOPrR"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="pNwfhg29"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44VRHT5WB0z9sPS for <incoming@patchwork.ozlabs.org>; Fri, 29 Mar 2019 00:56:37 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ipGNJBI4lW/Q5rWXTGSQl7wA5Zc7Z2HzI2fcBHDaEXI=; b=urEiOPrR2Q7K95 jh6d8mDytyCVfiq1ysBTUeCjs0NOUsMEcBMQI4egLa7xeJ2Iwbm3NV3TUIzB82fMzYRxHuTBxSirq MMzFNKgs9TTPoYTLX0pxCQlT3aUZpgr9QRewudUkPNFM9hNsMax66ZdBUreWeCv1ZvV0ThkfHIMss ESau0Ly6gRitrEE1abWomyW0dOPM8xVCN9GMnHDL0POVcKt3VUvuhxij/bLBne9PnCm9NxSPkvn7j zyGM58IFPnIcSfxDfKZgVoyrZrR79Vcqd/a3xhyKbj/I4ZbdR/aOqc2749avtDMhRSz9pKg8Li820 Hh5WJcQztcAXUaYin1Vg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9VVp-0002mn-6M; Thu, 28 Mar 2019 13:56:09 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9VVm-0002mG-3j for openwrt-devel@lists.openwrt.org; Thu, 28 Mar 2019 13:56:07 +0000 Received: by mail-wr1-x441.google.com with SMTP id y13so5318370wrd.3 for <openwrt-devel@lists.openwrt.org>; Thu, 28 Mar 2019 06:56:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=r6VYK1VsWABXtqnfiTtYWIr6hkocCf+4VgetAWBclgk=; b=pNwfhg29uxCgi3yl7l5QSDNCiOoA2QKBGhTCxCGwGH+WArZxQHveP7vYSebiSRPBvr CcZJCx3O67S99cGgK1RKmqz09U5fP6lBu0LW5H8dyoURvS/IwMe0qWjRskVJqTA68xCs 2enZPcAsW4y72fwfz+P+n8DfBmbSeFVU3e90hyUeOHVdnP0QBQra04jy4O9xjXJ77Okf nmGlgwDLXJN8UBzn/Z5zlfjrPGK+n6UiansKpdlOKBDs/JTWF9PXlsvV+uWIjWytm46S dX1faKLXtyWMKyj4q5zY7vHC5LF2N+V5aaESZqLDaShSZazEtUugIvGxZ4pAxE4PqAQU kQFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=r6VYK1VsWABXtqnfiTtYWIr6hkocCf+4VgetAWBclgk=; b=ITr5TEgVzIOSF1AE3VkYFDkgTB81i+skHUekEi7hAnocEGWEtGnnPTYTgU/G+1GBOV egIkqg3ZcycVR360NTSq1NgtVI2O6ohLQXIwu21RZ/SwhXovmShsstkBR+a1Aq401Ebg G5kKkQLqG9tV1L3W513I3HDcwvLhkoGNypBG0tOvT6J/mJABJOMptzeEXglnAWVONPac /jXf/Nd3xBGKgpIvschG1jnb9IKxOfpzKxit3WSvwBwjplCtwztSlAH/cGUXIko+DtLi DEbPL8+k1CYLYrHZojYLF4VFuxnJ0Es8F91SoFP5fN3TndZQ2QVMMQG35gWQsTi7E/OV RSgg== X-Gm-Message-State: APjAAAXAJNZQ2V5nFVqqlpgyx3Fwhf+8m6teyAXq/RnHEmOmI5sifj3K vt8PYngUmwQCnWraMGU+avu2ELCE X-Google-Smtp-Source: APXvYqxBkeTrwx00xjkPQQlCksp+GxFVV92nZi2GDzvsViv9rJvGmjO/x6CQqJRcfeXk82BH1legCA== X-Received: by 2002:adf:edc6:: with SMTP id v6mr16313926wro.189.1553781360743; Thu, 28 Mar 2019 06:56:00 -0700 (PDT) Received: from localhost.localdomain (93-137-231-160.adsl.net.t-com.hr. [93.137.231.160]) by smtp.gmail.com with ESMTPSA id o12sm11932435wrx.92.2019.03.28.06.55.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Mar 2019 06:56:00 -0700 (PDT) From: Robert Marko <robimarko@gmail.com> To: openwrt-devel@lists.openwrt.org Date: Thu, 28 Mar 2019 14:55:55 +0100 Message-Id: <20190328135555.12638-1-robimarko@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190328_065606_150030_B4A0C103 X-CRM114-Status: GOOD ( 10.69 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:441 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (robimarko[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid Subject: [OpenWrt-Devel] [PATCH] iwinfo: Fix 802.11ad channel to frequency X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Cc: Robert Marko <robimarko@gmail.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
[OpenWrt-Devel] iwinfo: Fix 802.11ad channel to frequency
|
expand
|
diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index 13c69e3..200be28 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -1207,7 +1207,7 @@ static int nl80211_get_frequency_info_cb(struct nl_msg *msg, void *arg) static int nl80211_get_frequency(const char *ifname, int *buf) { - char *res, channel[4], hwmode[2]; + char *res, channel[4], hwmode[3]; /* try to find frequency from interface info */ res = nl80211_phy2ifname(ifname);
This patch enables proper identification of ad hwmode in channel2frequency function. Now iwinfo will properly calculate frequency for a channels 1-6 in 802.11ad. Fixes a8e827592338d7f10d93b4b93d04f367221465c2 Signed-off-by: Robert Marko <robimarko@gmail.com> --- iwinfo_nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)