From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias May Date: Tue, 23 Apr 2013 08:43:34 +0200 Subject: [ath9k-devel] How to block a concrete channel? In-Reply-To: References: Message-ID: <51762D96.3020403@neratec.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 22/04/13 21:11, Francisco Cuesta wrote: > Hello, > > I'm working with ath9k driver, and I would like to know how to block > completely a channel/frequency, for instance if the hardware allows to > tune of Channel 14, and I want to completeley block it to. > > I do know that on the crda database you can set up some flags like > CHAN_PASSIVE_SCAN or CHAN_RADAR, in order to allow just some > behaviours on that channel, as well as, you can leave out the > frequency of such database in which this channel appears so that > channel would be disabled. But for instance, I have found the state > IEEE80211_CHAN_DISABLED, so how could I proccee in case I wanted to > block the channel 14? Should I set this flag on the band of that > channel? ( This will lead to forbid completely such band right?) > > What is more, where are these flags applied? I mean at driver's level, > kernel's level or nl80211 interface level... > > Thank you very much in advance! > > regards > _______________________________________________ > ath9k-devel mailing list > ath9k-devel at lists.ath9k.org > https://lists.ath9k.org/mailman/listinfo/ath9k-devel You could "disable" the channel by removing it in ./drivers/net/wireless/ath/ath9k/init.c Don't forget to adjust the ATH9K_NUM_CHANNELS in ./drivers/net/wireless/ath/ath9k/hw.h regards -- Matthias May Software Engineer Neratec Solutions AG Postfach 83, CH-8608 Bubikon, Switzerland Direct: +41 55 253 2074 Office: +41 55 253 2000 Fax: +41 55 253 2070 email: matthias.may at neratec.com Web: www.neratec.com