From owner-freebsd-wireless@freebsd.org Thu Nov 17 08:15: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 22689C46887 for ; Thu, 17 Nov 2016 08:15:20 +0000 (UTC) (envelope-from fnoyanisi@yahoo.com) Received: from nm11-vm1.bullet.mail.bf1.yahoo.com (nm11-vm1.bullet.mail.bf1.yahoo.com [98.139.213.152]) (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 C1AE98C0 for ; Thu, 17 Nov 2016 08:15:19 +0000 (UTC) (envelope-from fnoyanisi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1479370512; bh=QZ5kFnf+mUpmHPb2HIvjsNGKPWhqvzEmJUVSbjCD2NU=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=iWbg8sLglEdOLTP/L9lt4QJNruVSYyTJC5OnbHs3t7PWz2cO9aAenMgfqzaGvZAihjVdk7U8RIMlVwSkcQ/La3JXb5Kf/AxXCfnFaSTpXuZXOx5K4coFSHEOulHadLGC9e0kSd8CNX60v1APxLY/qxhypgd8SPUpHUGmvk5pCZq9ce4Dc0CF4lW1Em43NsewLZTc6g9SJSot06x35e0+4AdDGNgVYLnx1Z+ehZ5HasARb1jXkJm1FUjX8XPoglfHDRDA01LWLqlt7C+F3Du4hzORuDvo0l7N6ipnXlKREkxB/gbk3K+JxzOnHhHG9//87x/TNH6CkbC62tE2EhcAIw== Received: from [98.139.170.179] by nm11.bullet.mail.bf1.yahoo.com with NNFMP; 17 Nov 2016 08:15:12 -0000 Received: from [98.139.212.234] by tm22.bullet.mail.bf1.yahoo.com with NNFMP; 17 Nov 2016 08:15:12 -0000 Received: from [127.0.0.1] by omp1043.mail.bf1.yahoo.com with NNFMP; 17 Nov 2016 08:15:12 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 276358.98278.bm@omp1043.mail.bf1.yahoo.com X-YMail-OSG: gvB8.zMVM1lO05CuptavTghFm8ltcqADGZE8.mPyrsP.YSJHPSSL5DPXY0UnzDU kYmHq7z7ZnPWqYqIbThKA.qTNL5m7jsKgaXdGg_YYomgQlmCHlLddiWHndlzT6bmaqQ4dKprylqf Qvq1pBwjt9eK79GWp7U_7On0MrhuaakiAOfZcDzQiHI6_LU1gwpPF3cu9CTft.Y88JZ.t59YrZN. f54DuC8vO2tnN7lBCXH6k.6pUeRDV.JZ0_26AbWZZyoX__4hdObJ1oTUeo7tKhgsWMRIiuh7JMco 8wWOWPQVPEY6A7bAe_YoNJ9IwEC5BROAZXpkEmoSCA8ea4z5HHWhrJ.S0Nsy1h48eqSnFOWWhrWt qTqqYFEJOgrhbWRD23XT_FrFAo51j1th58XaBl4GderdOEd_4IadU4qkj51DryuGF7wqrz9GExJa 7WR63voxaN3zoZCOiDp1FOHR3vCs1_RGP7v_nnRAZdNFOHucpvnrhpgYf_ivJRGbUJy0ty5sDl5p gp.aX7u_rBvfxP4209S2yCCi7 Received: from jws400056.mail.bf2.yahoo.com by sendmailws125.mail.bf1.yahoo.com; Thu, 17 Nov 2016 08:15:11 +0000; 1479370511.814 Date: Thu, 17 Nov 2016 08:15:11 +0000 (UTC) From: Fehmi Noyan ISI Reply-To: Fehmi Noyan ISI To: Adrian Chadd Cc: Freebsd Wireless Message-ID: <2112311201.1853303.1479370511602@mail.yahoo.com> In-Reply-To: References: <980351195.1573665.1479336792289.ref@mail.yahoo.com> <980351195.1573665.1479336792289@mail.yahoo.com> Subject: Re: Using net80211/IEEE80211_C_BITS macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 08:15:20 -0000 Well, including ieee80211_var.h and attempting to compile the code throws dozens of error messages. In addition, I wonder why IEEE80211_C_BITS is re-defined in ifieee80211.c. ----- Original Message ----- From: Adrian Chadd To: Fehmi Noyan ISI Cc: Freebsd Wireless Sent: Thursday, November 17, 2016 7:11 PM Subject: Re: Using net80211/IEEE80211_C_BITS macro 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 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 > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"