Re: Help required in understanding MadWifiinitialization and card setup

"Brett Wright" <[email protected]> Wed, 2 Jun 2010 12:29:41 +1000
Newsgroups gmane.linux.drivers.madwifi.devel,gmane.linux.drivers.madwifi.user
Message-ID <[email protected]>
Hi,

You need to set a reg domain that supports half and quarter channels
(you may have to add/modify to get the functionality you want).
Have a look at struct regDomain in ah_regdomain.c
In particular the parameters chan11g_quarter, chanllg_half, etc.
The reg domain you are using will have to assign an appropriate
REG_DMN_FREQ_BAND to these parameters with corresponding channelBW set.

Once these half/quarter channels exist for your regdomain, they are
differentiated by appropriate bits of the channelFlags parameter of an
ieee80211_channel structure - take a look at ath_getchannels() in
if_ath.c to get a good idea where the channel structures are set and
what they contain. Ultimately, these are the channels/bandwidths that
you can then specify.

Brett

> -----Original Message-----
> From: Aditya Bhave [mailto:[email protected]]
> Sent: Wednesday, 2 June 2010 12:07 PM
> To: [email protected]; madwifi-
> [email protected]
> Subject: [Madwifi-devel] Help required in understanding
> MadWifiinitialization and card setup
> 
> Hi,
> 
> I needed some help in understanding what happens during MadWifi
> initialization? What functions get called and in what order? Which
> function initializes the card through the HAL and so on. Specifically,
> Im looking to implement 5/10 MHz channel widths on Madwifi and I know
> that this requires modifying parts of the ath_reset() and ath_init()
> methods as well as adding regulatory support in ah_regdomain.c. Can
> someone please guide me on this? Specifically,
> 
> 1. How does the driver know which channels are supported by the card?
> Which HAL functions does it call and what data structures represent
> channels?
> 2. How and where does the driver tell the card to use a specific
channel
> center frequency and width?
> 
> Many thanks for your help
> --Aditya Bhave
> 
>
------------------------------------------------------------------------
--
> ----
> 
> _______________________________________________
> Madwifi-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/madwifi-devel
> 
> 
> 


------------------------------------------------------------------------------