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.c

    r2621 r2711  
    310310        ic->ic_bsschan = IEEE80211_CHAN_ANYC; 
    311311        /* Arbitrarily pick the first channel */ 
    312         ic->ic_curchan = &ic->ic_channels[0]
     312        ieee80211_set_channel(ic, &ic->ic_channels[0])
    313313 
    314314        /* Enable marking of dfs by default */ 
     
    326326        IEEE80211_VAPS_LOCK_INIT(ic, "ieee80211com_vaps"); 
    327327        TAILQ_INIT(&ic->ic_vaps); 
    328  
    329         ic->ic_txpowlimit = IEEE80211_TXPOWER_MAX; 
    330         ic->ic_txpowlimit = IEEE80211_TXPOWER_MIN; 
    331         ic->ic_newtxpowlimit = IEEE80211_TXPOWER_MAX; 
    332328 
    333329        ieee80211_crypto_attach(ic); 
     
    421417        vap->iv_ath_cap = ic->ic_ath_cap; 
    422418        vap->iv_mcast_rate = 1000;              /* Default multicast traffic to lowest rate of 1Mbps */ 
     419 
     420        vap->iv_txpower = IEEE80211_TXPOWER_MAX; 
     421        ic->ic_set_txpow(ic, vap->iv_txpower); 
    423422 
    424423#ifdef ATH_SUPERG_XR