Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2924634ybl; Thu, 29 Aug 2019 15:10:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1HdO6u8+kDogndBUvzVwZUoPo9P2/2YU3NQN4OFPr5VJeQkth9euE+rSgL+o9SkREW3zl X-Received: by 2002:a62:b412:: with SMTP id h18mr10323612pfn.175.1567116635090; Thu, 29 Aug 2019 15:10:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567116635; cv=none; d=google.com; s=arc-20160816; b=a5euzzRtoPlVRY05HD7I95M87G47wuVZQsCnvAVkji082g0PEQKzieZklOwXF5F3j8 CVHs1INyBmWZ+lpqc0etFWj8At0y00JK9Kv03a1MOVF5fLBjFZp6+lWlp0IlRF6V2ECQ Khrq77W488MoaGuUttYaPU7Sd/e2moitNSIcL1e47+NE3TwSgV7vW38w3zlxgdM/09gd CE5qIJRvvcy2P9mBUGU83B1YQQ6CZKJ1rAZNU9zJmh3sWVEdVmrmFPbdCvUxKmBLlf3t TUTgGBVGGhsj81BdgsgcvPkFFW/zswdPesi0xddStMBotmugF9TasGU20sde5UClc5i6 rpDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=5SER0TPgVfABL9o9jEL5pMAgZa99CDbxo3FlktxMmhc=; b=xEUPj7sX3pB43iLCFRzpv5y5ihoZcIDKCeNwfiAU5o8R10an+5KoI9KOO0HGDqrqJQ vZK9Rpn0zv/nbryhf6tZznQIbUOZyLcDCuR/iizIuXj1Son+5H+IkPRn1nWbeZg9UfdR /RVkn8Q7mfjJTJgpwWEB4mJrQyhDoGlZo/Tflpr4wgN9+U85wPxWWjpGpRN6O4HJDSBV HsmvFCwP3cQFeUQpHtJYVTwKSEsqViYCZ2LlJMcD2HbpxAPKigJVivcpVFy+jJgfzb82 uiQJaQ0n6mvvIVLy0g9IdYdlBWbWDEsX648hAnDHbEXF3OmdhBI0p+x81GVNKm8ftY16 F16w== 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 11si3937956pfj.239.2019.08.29.15.10.13; Thu, 29 Aug 2019 15:10:35 -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 S1728212AbfH2WJf (ORCPT + 99 others); Thu, 29 Aug 2019 18:09:35 -0400 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:5102 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726894AbfH2WJf (ORCPT ); Thu, 29 Aug 2019 18:09:35 -0400 Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-01.qualcomm.com with ESMTP; 29 Aug 2019 15:09:34 -0700 Received: from asinghal-linux.qualcomm.com ([10.234.220.60]) by ironmsg05-sd.qualcomm.com with ESMTP; 29 Aug 2019 15:09:34 -0700 Received: by asinghal-linux.qualcomm.com (Postfix, from userid 73644) id 6AD1636AF; Thu, 29 Aug 2019 15:09:32 -0700 (PDT) From: Amar Singhal To: johannes@sipsolutions.net, jouni@codeaurora.org Cc: linux-wireless@vger.kernel.org, jjohnson@codeaurora.org, rmanohar@codeaurora.org, Amar Singhal Subject: [PATCH] cfg80211: Add new fields to wiphy structure Date: Thu, 29 Aug 2019 15:09:19 -0700 Message-Id: <1567116559-17419-1-git-send-email-asinghal@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org A channel is completely defined by (oper_class, channel number) tuple, and not just by center frequency. Operating class also tells about the bandwidth supported by the channel. Therefore add the operating class and channel number to the wiphy structure. Signed-off-by: Amar Singhal --- include/net/cfg80211.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 2d17e32..6467b60 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -129,6 +129,8 @@ enum ieee80211_channel_flags { * with cfg80211. * * @center_freq: center frequency in MHz + * @oper_class: global operating class for the channel + * @chan_num: channel number per IEEE operating class Annex E Table E-4 * @hw_value: hardware-specific value for the channel * @flags: channel flags from &enum ieee80211_channel_flags. * @orig_flags: channel flags at registration time, used by regulatory @@ -150,6 +152,8 @@ enum ieee80211_channel_flags { struct ieee80211_channel { enum nl80211_band band; u32 center_freq; + u8 oper_class; + u8 chan_num; u16 hw_value; u32 flags; int max_antenna_gain; -- 1.9.1