From owner-freebsd-wireless@freebsd.org Wed Nov 16 22:53:20 2016 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B867BC45AF2 for ; Wed, 16 Nov 2016 22:53:20 +0000 (UTC) (envelope-from fnoyanisi@yahoo.com) Received: from nm43-vm5.bullet.mail.bf1.yahoo.com (nm43-vm5.bullet.mail.bf1.yahoo.com [216.109.114.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 60DDFF1F for ; Wed, 16 Nov 2016 22:53:19 +0000 (UTC) (envelope-from fnoyanisi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1479336793; bh=fZun7tD027jru9BQfNr1YyF1gnG+TpdEGQkM8w1m9Xg=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=RkSymaearDx2bbLUDSuv+qHZqsat9IYlmf3DQJjJ5x8iQ41njui0DABeeywa0GYC5t8INdDN0raXny7oxDLHpwX1RSbTkZJGw1p0RXvnpE9q+uwjtr5hiipvio/A7qt1SNHnDeIOZEfyl737Vjy/sOFn0E6lBnn1b/twwqTBF/y6jq0LRk6qIUvMVJgT2mWoewTQ3Kn0GvvWalsr/+L35UvRKJL7/pmLGXvwDUcsTv0yHdoateiVHGvOxnJyy1eNMaEKalUISKCweDNsNs1D3Zdm8QmfN5487LbWkat4H6xofulg97oHzvhmVOTwYRHfJNtwUw+rOwD+GJCMzLbx9w== Received: from [66.196.81.170] by nm43.bullet.mail.bf1.yahoo.com with NNFMP; 16 Nov 2016 22:53:13 -0000 Received: from [98.139.212.197] by tm16.bullet.mail.bf1.yahoo.com with NNFMP; 16 Nov 2016 22:53:12 -0000 Received: from [127.0.0.1] by omp1006.mail.bf1.yahoo.com with NNFMP; 16 Nov 2016 22:53:12 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 980364.50652.bm@omp1006.mail.bf1.yahoo.com X-YMail-OSG: HWWTCecVM1kgHOn0J3GnAuOgpjF4ZGulW30ssHkMWuty.Xq22nUzQotCOKL3GUB sw9F3CX1EqBvztCcNZTP5dlGGiQ.DE_elpiVlnZVIb1bwYMxwmsB3wZ7ubhiTHYqZOiNmbTr2sHu 1a0N4Itpa9FXi42KV7oM5ED.arUstexbh5W6tpIz1gWxO.b0mNz0l7L4x3PAxuoo5ZtgNE9iwrJC fGN8bp9X6txvw4XzMwk4Snv_hvsub8Q1c9TGT6KIgJX4u3qVy.87lcOjDucA5xVNhlvak876pi8D HTGziJOR4DaVUIoG0gcO437XIj0DshDJfB6zmToMS1bmCB4FzEsPajMy9AQZp7mBN_aMNDdoUcJq WpJ..Mh6djEiRd15Mfxnka8mINO7or1xmlEmH8j4oV4fXVTLUgtKOcc5FLIK8zrUjkigAWmACaUY Mo98I44RU2EvLu1ojRkCMigo21VAOiJPeAasgJ611s8litlwtLxx0XLFj9m6ZuGgiEJMYxtoiLDv sCojT6W6Q2diVEdvyDInC Received: from jws400036.mail.bf2.yahoo.com by sendmailws158.mail.bf1.yahoo.com; Wed, 16 Nov 2016 22:53:12 +0000; 1479336792.620 Date: Wed, 16 Nov 2016 22:53:12 +0000 (UTC) From: Fehmi Noyan ISI Reply-To: Fehmi Noyan ISI To: Freebsd Wireless Message-ID: <980351195.1573665.1479336792289@mail.yahoo.com> Subject: Using net80211/IEEE80211_C_BITS macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: <980351195.1573665.1479336792289.ref@mail.yahoo.com> X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2016 22:53:20 -0000 Hiya, I am working on an API (hopefully will post something about it soon) that, beyond other stuff, checks wlan driver capabilities (just like ifconfig(1) does). However, the capabilities macro, which is IEEE80211_C_BITS, is defined in sys/net80211/ieee80211_var.h and I am not sure whether #include'ing ieee80211_var.h just for this macro is a good idea or not. I have noticed that IEEE80211_C_BITS is re-defined in sbin/ifconfig/ifieee80211.c to be used by list_capabilities() function; does this not require update of IEEE80211_C_BITS macro in multiple source files? What would be the best approach to use IEEE80211_C_BITS in my source file; including ieee80211_var.h or re-defining the macro in the source file (similar to ifconfig(1))? Thanks Fehmi