From 34c9a6c7f0b3d0268ea44dcffc43500b3a5c22e5 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Wed, 28 May 2008 23:18:17 +0000 Subject: [PATCH] Don't override the txpower cap installed by ieee80211_alloc_node; we use ic_txpowlimit (for now) to initialize all new sta entries. --- sys/net80211/ieee80211_node.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index 82da36a02224..cd503796396d 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -1010,7 +1010,6 @@ ieee80211_tmp_node(struct ieee80211vap *vap, ieee80211_node_initref(ni); /* mark referenced */ /* NB: required by ieee80211_fix_rate */ ieee80211_node_set_chan(ni, vap->iv_bss->ni_chan); - ni->ni_txpower = vap->iv_bss->ni_txpower; ieee80211_crypto_resetkey(vap, &ni->ni_ucastkey, IEEE80211_KEYIX_NONE); /* XXX optimize away */ @@ -1036,7 +1035,6 @@ ieee80211_dup_bss(struct ieee80211vap *vap, * Inherit from iv_bss. */ ni->ni_authmode = vap->iv_bss->ni_authmode; - ni->ni_txpower = vap->iv_bss->ni_txpower; ni->ni_vlan = vap->iv_bss->ni_vlan; /* XXX?? */ IEEE80211_ADDR_COPY(ni->ni_bssid, vap->iv_bss->ni_bssid); ieee80211_node_set_chan(ni, vap->iv_bss->ni_chan); @@ -1067,7 +1065,6 @@ ieee80211_node_create_wds(struct ieee80211vap *vap, * Inherit any manually configured settings. */ ni->ni_authmode = vap->iv_bss->ni_authmode; - ni->ni_txpower = vap->iv_bss->ni_txpower; ni->ni_vlan = vap->iv_bss->ni_vlan; ieee80211_node_set_chan(ni, chan); /* NB: propagate ssid so available to WPA supplicant */