Deleted a dead block of code and fixed continuous transmit function incompatibility with HAL's TPC control. The continuous transmit function is used to test emissions at different power levels, so having the levels fixed in the HAL defeated the settings for the continous transmit power level.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3512 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
mtaylor 2008-04-10 03:58:32 +00:00
parent 1246a7c612
commit 98dc20d2e4

View File

@ -6463,27 +6463,6 @@ ath_recv_mgmt(struct ieee80211vap * vap, struct ieee80211_node *ni_or_null,
}
intval = ni->ni_intval & HAL_BEACON_PERIOD;
#if 0
/* This code is disabled since it would produce
* unwanted merge. For instance, in a two nodes network
* A & B, A can merge to B and at the same time, B will
* merge to A, still having a split */
if (intval != 0) {
if ((sc->sc_nexttbtt % intval) !=
(beacon_tu % intval)) {
DPRINTF(sc, ATH_DEBUG_BEACON,
"ibss merge: "
"sc_nexttbtt %10x TU "
"(%3d) beacon %10x TU "
"(%3d)\n",
sc->sc_nexttbtt,
sc->sc_nexttbtt % intval,
beacon_tu,
beacon_tu % intval);
do_merge = 1;
}
}
#endif
if (do_merge)
ieee80211_ibss_merge(ni);
}
@ -11850,6 +11829,9 @@ txcont_queue_packet(struct ieee80211com *ic, struct ath_txq* txq)
bf->bf_desc->ds_link = bf->bf_daddr;
bf->bf_desc->ds_data = bf->bf_skbaddr;
/* in case of TPC, we need to set the maximum if we want < max */
ath_hal_settxpowlimit(ah, sc->sc_txcont_power/2);
ath_hal_settpc(ah, 0);
ath_hal_setuptxdesc(ah,
bf->bf_desc, /* the descriptor */
skb->len, /* packet length */