Show
Ignore:
Timestamp:
09/17/07 18:34:10 (5 years ago)
Author:
mentor
Message:

The aforementioned patch. It currently does no work, and I can no longer remember where I was going with it. I think I needed to add some logic for fiddling TX power on channel change at least.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/madwifi-ng-txpower/net80211/ieee80211_var.h

    r2583 r2711  
    7373         (_bi) : IEEE80211_BINTVAL_DEFAULT) 
    7474 
    75 #define IEEE80211_BGSCAN_INTVAL_MIN     15      /* min bg scan intvl (secs) */ 
     75#define IEEE80211_BGSCAN_INTVAL_MIN     15      /* min BG scan intvl (s) */ 
    7676#define IEEE80211_BGSCAN_INTVAL_DEFAULT (5*60)  /* default bg scan intvl */ 
    7777 
     
    8080 
    8181#define IEEE80211_COVERAGE_CLASS_MAX    31      /* max coverage class */ 
    82 #define IEEE80211_REGCLASSIDS_MAX       10      /* max regclass id list */ 
     82#define IEEE80211_REGCLASSIDS_MAX       10      /* max regclass ID list */ 
    8383 
    8484#define IEEE80211_PS_SLEEP      0x1             /* STA is in power saving mode */ 
    8585#define IEEE80211_PS_MAX_QUEUE  50              /* maximum saved packets */ 
    8686 
    87 #define IEEE80211_XR_BEACON_FACTOR      3       /* factor between xr Beacon interval and normal beacon interval */ 
     87#define IEEE80211_XR_BEACON_FACTOR      3       /* factor between XR beacon interval and normal beacon interval */ 
    8888#define IEEE80211_XR_DEFAULT_RATE_INDEX 0 
    8989#define IEEE80211_XR_FRAG_THRESHOLD     540 
     
    9999 
    100100#define IEEE80211_APPIE_MAX     1024 
    101  
    102 #define IEEE80211_PWRCONSTRAINT_VAL(ic) \ 
    103         (((ic)->ic_bsschan->ic_maxregpower > (ic)->ic_curchanmaxpwr) ? \ 
    104             (ic)->ic_bsschan->ic_maxregpower - (ic)->ic_curchanmaxpwr : 0) 
    105101 
    106102/* 802.11 control state is split into a common portion that maps 
     
    214210        u_int16_t iv_txmin;                             /* min tx retry count */ 
    215211        u_int16_t iv_txmax;                             /* max tx retry count */ 
     212        u_int16_t iv_txpower;                           /* TX power */ 
    216213        u_int16_t iv_txlifetime;                        /* tx lifetime */ 
    217214        int iv_inact_timer;                             /* inactivity timer wait */ 
     
    287284        unsigned long ic_bmiss_guard;           /* when to cease ignoring bmiss (jiffies) */ 
    288285        u_int16_t ic_txpowlimit;                /* global tx power limit (in 0.5 dBm) */ 
    289         u_int16_t ic_newtxpowlimit;             /* tx power limit to change to (in 0.5 dBm) */ 
    290286        u_int16_t ic_uapsdmaxtriggers;          /* max triggers that could arrive */ 
    291287        u_int8_t ic_coverageclass;              /* coverage class */ 
     
    350346         *     know value until change to channel and detect). 
    351347         */ 
    352         u_int8_t ic_curchanmaxpwr; 
    353348        u_int8_t ic_chanchange_tbtt; 
    354349        u_int8_t ic_chanchange_chan; 
     
    388383        void (*ic_scan_end)(struct ieee80211com *); 
    389384        void (*ic_set_channel)(struct ieee80211com *); 
     385         
     386        /* TX power support */ 
     387        void (*ic_set_txpow)(struct ieee80211com *,  
     388                        int);           /* Units of 0.5 dBm */ 
    390389 
    391390        /* U-APSD support */