#306: madwifi-ng + chipset 5211 not setting txpower, but madwifi-old/r1417 works
fine(Can't set txpower by iwconfig command)
------------------------------------+---------------------------------------
      Reporter:  [EMAIL PROTECTED]  |       Owner:         
          Type:  defect             |      Status:  new    
      Priority:  major              |   Milestone:         
     Component:  madwifi: other     |     Version:  trunk  
    Resolution:                     |    Keywords:  txpower
Patch_attached:  0                  |  
------------------------------------+---------------------------------------
Comment (by [EMAIL PROTECTED]):

 hi hareesh,

 How are u ? Which company do you work now. Please let me know.




 Replying to [comment:38 [EMAIL PROTECTED]:
 > Dear Vinay,
 >
 > I too felt there is bug in ath_update_txpow() function.
 > Replacing ath_hal_getmaxtxpow() with ath_hal_gettxpowlimit() is working
 fine
 > But by default it set to 31dBM which is very dangerous. so want set
 default value to 23dBm. Can you please let me know where i can set default
 value to 23dBm.
 >
 > looking for your reply
 >
 > regards
 > Hareesh
 >
 > Replying to [comment:31 [EMAIL PROTECTED]:
 > > Hi All,
 > >       I think there is a bug in ath_update_txpow() function.
 > >       The way in which the maximum txpower of chip is calculated is
 wrong.
 > >
 > > /********* original code *******************/
 > >         u_int32_t maxtxpowlimit = 9999;
 > >     u_int32_t clamped_txpow = 0;
 > >
 > >     /*
 > >      * Find the maxtxpow of the card and regulatory constraints
 > >      */
 > >     (void)ath_hal_getmaxtxpow(ah, &txpowlimit);
 > >     ath_hal_settxpowlimit(ah, maxtxpowlimit);
 > >     (void)ath_hal_getmaxtxpow(ah, &maxtxpowlimit);
 > >     ic->ic_txpowlimit = maxtxpowlimit;
 > >     ath_hal_settxpowlimit(ah, txpowlimit);
 > > /********************************************/
 > >
 > > In the above lines of code, a very high value of 9999 is set to
 > > txpowlimit using ath_hal_settxpowlimit()function.
 > > The logic is that the hal will put in a sane value instead of 9999.
 > > but while reading back the values --> ath_hal_getmaxtxpow() is used.
 > >
 > > For .11b mode the hal is returning a very low value for
 ath_hal_getmaxtxpow().
 > >
 > > Replacing ath_hal_getmaxtxpow() with ath_hal_gettxpowlimit() is
 working fine
 > > for me with ar5312A soc.
 > >
 > > Regards,
 > > Vinay

-- 
Ticket URL: <http://madwifi.org/ticket/306#comment:40>
madwifi.org <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Madwifi-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-tickets

Reply via email to