From: Jouni Malinen Date: Mon, 2 Jan 2012 11:28:30 +0200 Subject: [ath9k-devel] compat-wireless >= 2011-12-16 broken on debian 6.0 In-Reply-To: <20120101082402.GA16397@roja.toh.cx> References: <20120101082402.GA16397@roja.toh.cx> Message-ID: <20120102092830.GB2686@jouni.qca.qualcomm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Sun, Jan 01, 2012 at 09:24:02AM +0100, Thomas Hilber wrote: > all compat-wireless-2011-12-XX.tar.bz2 versions before 2011-12-16 > work seemless on a debian 6.0. > > The versions 2011-12-16 and above require me to encomment following > code snippet in nl80211.c > > #if 0 > /* accept only the listed bits */ > if (params.sta_flags_mask & > ~(BIT(NL80211_STA_FLAG_AUTHORIZED) | > BIT(NL80211_STA_FLAG_SHORT_PREAMBLE) | > BIT(NL80211_STA_FLAG_WME) | > BIT(NL80211_STA_FLAG_MFP))) > return -EINVAL; > #endif > > to avoid messages like > Could not set station 00:1f:3b:xx:xx:xx flags for kernel driver (errno=95). > I don't know what the official way is to fix this issue. Probably > hostapd must be fixed to reflect the API changes since version 2011-12-16. That sounds like a regression caused by the cfg80211 changes in commit bdd90d5e36a55271beb957b3d7ca3e29b2a90207 (2011-12-14). We should not be breaking compatibility with older user space tools, so this may desire some workaround in the kernel.. Which hostapd version were you using in the failure case? Based on your follow up message, the current hostap.git snapshot does not have this issue which is good in itself, but still, we should not be forcing this type of user space upgrades with kernel changes without a very good reason. -- Jouni Malinen PGP id EFC895FA