Thread: [Madwifi-devel] cannot set cwmin, cwmax, aifs, txoplimit
Status: Beta
Brought to you by:
otaku
From: nathan <nit...@ya...> - 2010-06-02 17:58:50
|
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. |
From: Mohammad A. <mo....@gm...> - 2010-06-02 20:23:44
|
On Wed, Jun 2, 2010 at 8:58 PM, nathan <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... > 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... \ mo....@gm... |
From: Vishal S. <vis...@gm...> - 2010-06-03 07:40:19
|
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...>wrote: > > > > > On Wed, Jun 2, 2010 at 8:58 PM, nathan <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... >> 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... \ 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... > https://lists.sourceforge.net/lists/listinfo/madwifi-devel > > |
From: Nikos M. <nim...@gm...> - 2010-06-03 08:57:15
|
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. ???? 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... > https://lists.sourceforge.net/lists/listinfo/madwifi-devel > |
From: Vishal S. <vis...@gm...> - 2010-06-03 11:50:55
|
On Thu, Jun 3, 2010 at 2:27 PM, Nikos Makris <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...>wrote: > >> >> >> >> >> On Wed, Jun 2, 2010 at 8:58 PM, nathan <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... >>> 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... \ 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... >> 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 lis...@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... > https://lists.sourceforge.net/lists/listinfo/madwifi-devel > > |
From: Nikos M. <nim...@gm...> - 2010-06-03 13:12:36
|
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 > > |
From: Vishal S. <vis...@gm...> - 2010-06-04 09:07:22
|
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...> > 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...> 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...>wrote: >> >>> >>> >>> >>> >>> On Wed, Jun 2, 2010 at 8:58 PM, nathan <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... >>>> 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... \ 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... >>> 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 lis...@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... >> https://lists.sourceforge.net/lists/listinfo/madwifi-devel >> >> > > |
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 >> >> > > |
From: Vishal S. <vis...@gm...> - 2010-06-06 11:12:15
|
iam usign madwifi_r3314 which comes with opensource hal. so that is the problem, i dont know what hal code is doing. vishal 2010/6/4 Nikos Makris <nim...@gm...> > 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...> > >> 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...> 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...>wrote: >>> >>>> >>>> >>>> >>>> >>>> On Wed, Jun 2, 2010 at 8:58 PM, nathan <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... >>>>> 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... \ 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... >>>> 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 lis...@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... >>> https://lists.sourceforge.net/lists/listinfo/madwifi-devel >>> >>> >> >> > > |
From: Vishal S. <vis...@gm...> - 2010-06-07 07:37:29
|
Hi For verifying the queue parameters are changed or not, Iam doing following expt. A sender sends 1400 byte packets continuously to the receiver. Receiver logs the timestamp of the received packets. So based on the receive timestamps, Iam noting down the difference between consecutive packets. The time difference that Iam getting is equal to acktimeout if slottime is set to 0. If I have cwmin=1 and cwmax=1, and slottime > acktimeout, the time difference is 1*slottime or 2*slottime. Even if I set sifs and aifs values to very large number, I get the time difference between two consecutive packets equal to above values of slottime or acktimeout. Thus I conclude that setting of aifs and sifs is not working. Also since Iam working with closedhal (down I have written opensource hal by mistake) Iam not sure whether it is the hal which is not letting me set these values or some other reason. vishal 2010/6/6 <abh...@gm...> > Hi Vishal, > How did you notice that queue parameters are not changed? > (when u internally changed code?). Ipriw should give > correct result, but its other matter that hal is not setting properly. > > > > > > > On Jun 6, 2010 4:12am, Vishal Sevani <vis...@gm...> wrote: > > iam usign madwifi_r3314 which comes with opensource hal. so that is the > problem, i dont know what hal code is doing. > > > > vishal > > > > 2010/6/4 Nikos Makris nim...@gm...> > > > > > > > > > > > > > > > > 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 > > #define ATH_TXOP_TO_US(v) (v > > 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...> > > > > > > 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...> > > 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...> > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Wed, Jun 2, 2010 at 8:58 PM, > > nathan 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... > > > > 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... \ 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... > > > > 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... > > 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... > > > > https://lists.sourceforge.net/lists/listinfo/madwifi-devel > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |