Re: [Madwifi-devel] cannot set cwmin, cwmax, aifs, txoplimit
Status: Beta
Brought to you by:
otaku
From: Nikos M. <nim...@gm...> - 2010-06-04 13:42:55
|
try to locate where in hal the ath_hal_settxqueueprops function is called. (In my trunk version it's under the name of ath_hal_setTxQProps in file ah.c) You can find there some interesting information about the limits and do some printing in order to check what values are finally set. Nikos στις 4/6/2010 12:07 μμ, O/H Vishal Sevani έγραψε: > nope still not working .. i tried calling ath_txq_update() in > ath_tx_startraw which is called everytime i send a packet. i even > tried changing burst time, but still not working. (btw i forgot to > mention earlier, iam interested in setting aifs as i want to control > the interpacket between successive pkt transmissions). here is my > modified, ath_txq_update() > > static int > ath_txq_update(struct ath_softc *sc, struct ath_txq *txq, int ac) > { > #define ATH_EXPONENT_TO_VALUE(v) ((1<<v)-1) > #define ATH_TXOP_TO_US(v) (v<<5) > struct ieee80211com *ic = &sc->sc_ic; > struct wmeParams *wmep = &ic->ic_wme.wme_chanParams.cap_wmeParams[ac]; > struct ath_hal *ah = sc->sc_ah; > HAL_TXQ_INFO qi; > > ath_hal_gettxqueueprops(ah, txq->axq_qnum, &qi); > //qi.tqi_aifs = wmep->wmep_aifsn; > //vs change > qi.tqi_aifs = 10; > //printk("aifs %d\n",wmep->wmep_aifsn); > //qi.tqi_cwmin = ATH_EXPONENT_TO_VALUE(wmep->wmep_logcwmin); > //my change > qi.tqi_cwmin = 1; > //printk("cwmin %d\n",qi.tqi_cwmin); > //qi.tqi_cwmax = ATH_EXPONENT_TO_VALUE(wmep->wmep_logcwmax); > //my change > qi.tqi_cwmax = 1; > //printk("cwmax %d\n",qi.tqi_cwmax); > //qi.tqi_burstTime = ATH_TXOP_TO_US(wmep->wmep_txopLimit); > qi.tqi_burstTime = 10000; > > if (!ath_hal_settxqueueprops(ah, txq->axq_qnum, &qi)) { > EPRINTF(sc, "Unable to update hardware queue " > "parameters for %s traffic!\n", > ieee80211_wme_acnames[ac]); > return 0; > } else { > ath_hal_resettxqueue(ah, txq->axq_qnum); /* push to h/w */ > //printk("set queue props\n"); > return 1; > } > #undef ATH_TXOP_TO_US > #undef ATH_EXPONENT_TO_VALUE > } > > Though here I have kept the value of cwmin and cwmax to 1, i also > tried with other values with same result. > > thanks > vishal > > 2010/6/3 Nikos Makris <nim...@gm... <mailto:nim...@gm...>> > > the limits are defined in HAL. Try calling ath_txq_update > everytime you have a packet to send. It works fine for me in AP > and STA mode. > > Nikos > > στις 3/6/2010 2:50 μμ, O/H Vishal Sevani έγραψε: >> >> >> On Thu, Jun 3, 2010 at 2:27 PM, Nikos Makris <nim...@gm... >> <mailto:nim...@gm...>> wrote: >> >> try using ath_txq_update function with the appropriate queue >> for argument (Most cases WME_AC_BE). Remember cannot set >> cwmin lower than 15 and cwmax over 1023. >> >> Yeah I have modified both the functions, ath_txq_setup as well >> ath_txq_update for all the queues, but still it is not working. >> Could it be becasue Iam operating in monitor mode?? Also where is >> limit of 15 and 1023 defined for cwmin and cwmax?? is it in HAL?? >> >> Thanks >> vishal >> >> >> στις 3/6/2010 10:40 πμ, O/H Vishal Sevani έγραψε: >>> iam operating in monitor and i tried setting aifs, cwmin and >>> cwmax via ath_txq_setup() function, but it not working for me :( >>> >>> vishal >>> >>> On Thu, Jun 3, 2010 at 1:53 AM, Mohammad Abdelhadi >>> <mo....@gm... <mailto:mo....@gm...>> wrote: >>> >>> >>> >>> >>> >>> On Wed, Jun 2, 2010 at 8:58 PM, nathan >>> <nit...@ya... <mailto:nit...@ya...>> wrote: >>> >>> Hi, >>> I am running madwifi 0.9.4. The radio is configured >>> as an AP. >>> I tried to set the above iwpriv parameters for >>> access class BE, and it accepts the cmd but does NOT >>> change the values. >>> >>> I did google a search, and found out that I am not >>> the only one. I could not find any fix or explnation >>> as to why it's not working.... >>> >>> any help will be appreciated, >>> nathan. >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Madwifi-devel mailing list >>> Mad...@li... >>> <mailto:Mad...@li...> >>> https://lists.sourceforge.net/lists/listinfo/madwifi-devel >>> >>> >>> >>> Hi, >>> >>> Yes, i also tried iwpriv and it didn't work. Try to >>> configure them internally from the driver itself, see >>> ( static struct ath_txq * >>> ath_txq_setup) in if_ath.c, and you will find parameters >>> such as (qi.tqi_aifs) and others....try to modify them >>> as desired. >>> >>> Hope this helps. >>> >>> Regards, >>> -- >>> Mohammad Abdelhadi >>> ---------------------------------------------------------------------------- >>> Communications Engineering-Senior Student >>> Princess Sumaya University for Technology >>> Amman, Jordan >>> Mobile: +962777030924 >>> Email: moh...@ie... <mailto:moh...@ie...> \ >>> mo....@gm... <mailto:mo....@gm...> >>> >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> ThinkGeek and WIRED's GeekDad team up for the Ultimate >>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >>> lucky parental unit. See the prize list and enter to win: >>> http://p.sf.net/sfu/thinkgeek-promo >>> _______________________________________________ >>> Madwifi-devel mailing list >>> Mad...@li... >>> <mailto:Mad...@li...> >>> https://lists.sourceforge.net/lists/listinfo/madwifi-devel >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> ThinkGeek and WIRED's GeekDad team up for the Ultimate >>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >>> lucky parental unit. See the prize list and enter to win: >>> http://p.sf.net/sfu/thinkgeek-promo >>> >>> >>> _______________________________________________ >>> Madwifi-devel mailing list >>> Mad...@li... <mailto:Mad...@li...> >>> https://lists.sourceforge.net/lists/listinfo/madwifi-devel >>> >> >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Madwifi-devel mailing list >> Mad...@li... >> <mailto:Mad...@li...> >> https://lists.sourceforge.net/lists/listinfo/madwifi-devel >> >> > > |