From: Jouni Malinen Date: Thu, 24 Feb 2011 16:08:15 +0200 Subject: [ath9k-devel] ar9271 SIOCSIFFLAGS error and authentication timeout In-Reply-To: <20110224115202.664.qmail@stuge.se> References: <19813.55419.872426.269636@gargle.gargle.HOWL> <20110224040749.29275.qmail@stuge.se> <19814.2496.216607.495827@gargle.gargle.HOWL> <20110224074209.11758.qmail@stuge.se> <20110224090010.GB19782@fly> <20110224091823.32641.qmail@stuge.se> <20110224095848.GD24543@fly> <1298545686.25101.36.camel@jm-desktop> <20110224112107.GA11720@fly> <1298546937.25101.54.camel@jm-desktop> <20110224115202.664.qmail@stuge.se> Message-ID: <1298556495.25101.66.camel@jm-desktop> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Thu, 2011-02-24 at 03:52 -0800, Peter Stuge wrote: > Quick grep rfkill -r /lib/rc* /etc/init.d comes up empty. It is done with iwconfig. iwconfig_post_stop and failure in iwconfig_pre_start results in "iwconfig wlan# txpower off" getting executed. This results in soft blocking the interface. iwconfig_pre_starts removes the soft block with iwconfig_defaults that runs "iwconfig wlan# txpower auto", but this happens only after wpa_supplicant has been started (I would do that in different order..) and as such, depends on wpa_supplicant being able to handle a dynamic rfkill blocking change. Anyway, this is getting way off-topic for this mailing list. Like I mentioned before, if this soft blocking causes issues, the question should be directed to Gentoo maintainers. Though, it should be noted that this works fine on my laptop with Gentoo as long as the network settings are correct to avoid hitting the soft block on failure and as long as wpa_supplicant is recent enough to handle the rfkill events properly. In addition, it should be noted that any manual operation after "net.wlan# stop" will need to take care of unblocking the soft block before actually trying to use the radio. - Jouni