Frequency Hopping

Mohammad Abdelhadi <[email protected]> Mon, 29 Mar 2010 15:03:40 +0300
Newsgroups gmane.linux.drivers.madwifi.user
Message-ID <[email protected]>
Hi Vishal,

 While I was checking the mailinglist, I found a function that was suggested
for you by Ivan:

void ar5212SetChannel5112work2192(UINT32 freq)

  {
/* Step 5 MHz */
          UINT32       ii,channelSelect;
volatile   UINT32 *hard_reg;

       channelSelect = ((freq - 672) * 2 - 3040)/10;
           channelSelect = (channelSelect << 2) & 0xff;
           channelSelect = ath_hal_reverseBits(channelSelect, 8);


       channelSelect = (channelSelect << 4) | 0x1005;

       hard_reg = (void*)0xB8510024; *hard_reg = 0x0;
       sysUDelayFlash (0x3E8);
       hard_reg = (void*)0xb851981c; *hard_reg = 0x0;
       sysUDelayFlash (0xA);
       hard_reg = (void*)0xb851989C; *hard_reg = (channelSelect & 0xff);

       channelSelect = (channelSelect >> 8) & 0x7f;
       hard_reg = (void*)0xb85198D8; *hard_reg = channelSelect;
       sysUDelayFlash (0xA);
       hard_reg = (void*)0xb851981c; *hard_reg = 0x1;
       sysUDelayFlash (0x64);
       hard_reg = (void*)0xb8519860;
       *hard_reg = *hard_reg |0x2;
       channelSelect = 0x2;
       for (ii=0; (ii< 0x3FFFE) && channelSelect ;ii++)channelSelect =
*hard_reg & 0x2;

       hard_reg = (void*)0xB8510024; *hard_reg = 0x1;


}


And I tried to use it, but I got a lot of errors. Therefore, could you
please tell me how to use this function in details.

Thank you so much...

-- 
Mohammad Jaser Abdelhadi
----------------------------------------------------------------------------
Communications Engineering-Senior Student
Princess Sumaya University for Technology
Mobile: +962777030924
Email: [email protected] \ [email protected]

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
Madwifi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-users