All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthias May <matthias.may@neratec.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] How to block a concrete channel?
Date: Tue, 23 Apr 2013 08:43:34 +0200	[thread overview]
Message-ID: <51762D96.3020403@neratec.com> (raw)
In-Reply-To: <CANMvdA-YZduHsWXYDqKz+Z+zKXfyxwpcENAXZTEOiZnUHNdjaA@mail.gmail.com>

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

  reply	other threads:[~2013-04-23  6:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-22 19:11 [ath9k-devel] How to block a concrete channel? Francisco Cuesta
2013-04-22 19:11 ` Francisco Cuesta
2013-04-23  6:43 ` Matthias May [this message]
2013-04-23  7:08   ` [ath9k-devel] " Francisco Cuesta
2013-04-23  8:29     ` Sujith Manoharan
2013-04-23 11:12       ` Francisco Cuesta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51762D96.3020403@neratec.com \
    --to=matthias.may@neratec.com \
    --cc=ath9k-devel@lists.ath9k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.