2013-04-22 19:11:55

by Francisco Cuesta

[permalink] [raw]
Subject: How to block a concrete channel?


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!