From owner-freebsd-wireless@freebsd.org Thu Nov 17 06:11:11 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 4DFD7C46E60 for ; Thu, 17 Nov 2016 06:11:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-it0-x230.google.com (mail-it0-x230.google.com [IPv6:2607:f8b0:4001:c0b::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 22523D3C for ; Thu, 17 Nov 2016 06:11:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-it0-x230.google.com with SMTP id l8so16720153iti.1 for ; Wed, 16 Nov 2016 22:11:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=d82v58tBOXi2MSjWoZQI+yW2I25oQ8I8fZg0MIAwX1U=; b=RC+fyPFHfAEjHdDvLWzn8DwnCA+aLHCwYYlZqPnfl2kXPKvY+Sl4aQ5TiOM2V084Om cXv7GChNIotC4J6i0RwvR4NSjBQIQe7oJH+4pz2E1RpWPHvRofBZCNna9xJPO6THe0vW 5mMD42Y5CCeYxbMLpPG0FF0Sgh3SZoxAWnr0z2Ye/5LU2FJ60mGC7itdsQsutCdZEMwX cvu/EVqtOJK1weMLgcuLI7eEVlrwxKZx4ApiovQA8+vBSdC67A2nfC9z28MVWBV3lAIH H8MwM7VjWI8x3jeM+GHKf0h/ewjeqQ23qa+fJ6AuZh8T84C8J5xaIvCt//mf4m114BTN 7Tww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=d82v58tBOXi2MSjWoZQI+yW2I25oQ8I8fZg0MIAwX1U=; b=B+9m1mt84bdlgAyB4evA6lA+cR7FGuH2QiyH3v9KRUmISpTq27KHVjRJyIVoeP/wmW 3k+9QAGdqf9hUORqSnck7rNKDY2L4MoUZ0KlxyWFyvjRYNDaoK9buBpn+g+lc53yGzMn RieVNLNo+6DRFTmG9QMQtD82XsckT6snTB/JfRtU6JINxi7OdxvtgW1kXwNI1UZkNcNs ekop8jH6Qa1RUjVJLgiyo6o6p7eAEyFoFyOCTNpsExMYmp8prk76ZHICTX575Qe2M2rQ 1TJtxiNxXES5Epb+yiU2v6bXLs6Lae/pOEfCt2622iWQdM1amSvwlk1i7cbBJWl0foua 2iFw== X-Gm-Message-State: ABUngvcb8RA8FnJ/WS23dM1itOTiy9PrsfgAy28LEmym0xVYPeyU6bbwuH9A6TfczuDYab5hjoeiIR+4XorICg== X-Received: by 10.36.220.130 with SMTP id q124mr1641393itg.78.1479363070600; Wed, 16 Nov 2016 22:11:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.39.134 with HTTP; Wed, 16 Nov 2016 22:11:09 -0800 (PST) In-Reply-To: <980351195.1573665.1479336792289@mail.yahoo.com> References: <980351195.1573665.1479336792289.ref@mail.yahoo.com> <980351195.1573665.1479336792289@mail.yahoo.com> From: Adrian Chadd Date: Wed, 16 Nov 2016 22:11:09 -0800 Message-ID: Subject: Re: Using net80211/IEEE80211_C_BITS macro To: Fehmi Noyan ISI Cc: Freebsd Wireless Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Thu, 17 Nov 2016 06:11:11 -0000 Hi! Uhm, we could totally break out more bits into separate header files if including ieee80211_var.h doesn't work for you. a On 16 November 2016 at 14:53, Fehmi Noyan ISI via freebsd-wireless wrote: > 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 def= ined 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/ifiee= e80211.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 (si= milar to ifconfig(1))? > > Thanks > Fehmi > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g"