Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#11097 closed defect (fixed)

can't tune the txpower on tl-wr703n with the latest trunk source code

Reported by: cbdsqhdd@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: ath9k, txpower Cc:

Description

Detail info please refer the topic which i post in the forum:
https://forum.openwrt.org/viewtopic.php?id=35307

Any more test or info need?Please let me know,thanks.

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by mips

This is a patch i made and test ok:

--- ar9003_eeprom_raw.c 2012-03-21 14:40:44.241044357 +0800
+++ ar9003_eeprom.c 2012-03-21 14:40:27.405044365 +0800
@@ -4985,7 +4985,7 @@
    struct ar9300_modal_eep_header *modal_hdr;
    u8 targetPowerValT2[ar9300RateSize];
    u8 target_power_val_t2_eep[ar9300RateSize];
-   unsigned int i = 0, paprd_scale_factor = 0;
+   unsigned int i = 0, max_rate = 0, paprd_scale_factor = 0;
    u8 pwr_idx, min_pwridx = 0;
 
    ar9003_hw_set_target_power_eeprom(ah, chan->channel, targetPowerValT2);
@@ -5045,7 +5045,12 @@
    }   
 
    regulatory->max_power_level = 0;
-   for (i = 0; i < ar9300RateSize; i++) {
+   if (IS_CHAN_HT40(chan)) {
+       max_rate = ar9300RateSize;
+   } else {
+       max_rate = ALL_TARGET_HT20_23;
+   }
+   for (i = 0; i < max_rate; i++) {
        if (targetPowerValT2[i] > regulatory->max_power_level)
            regulatory->max_power_level = targetPowerValT2[i];
    }  

compat-wireless-2012-02-27/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c

comment:2 Changed 6 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r31347

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.