From: mabbas <mabbas@linux.intel.com>
To: Jiri Benc <jbenc@suse.cz>
Cc: Jouni Malinen <jkm@devicescape.com>, netdev@vger.kernel.org
Subject: Re: [PATCH 2/7] d80211: add support for SIOCSIWRATE and SIOCGIWRATE
Date: Thu, 12 Oct 2006 15:35:59 -0700 [thread overview]
Message-ID: <452EC34F.2010309@linux.intel.com> (raw)
In-Reply-To: <20060928133824.0cb2aa78@logostar.upir.cz>
I am sorry for the late response. please read my comment bellow.
Jiri Benc wrote:
> On Thu, 21 Sep 2006 09:59:39 -0700, mabbas wrote:
>
>> I can not see how does it break per-STA TX rate limit, especially
>> PRISM2_HOSTAPD_SET_RATE_SETS almost doing the same thing. I am not saying
>> the patch is correct I just want to know how to fix it to get it in.
>>
>
> As Jouni wrote, it's not useful to change the per-radio rate table. You
> want to limit the rates you are using to communicate with the current AP
> while not limiting other virtual interfaces. (Imagine you have the card
> that is capable to associate to two APs at the same time. You don't want to
> limit rates for both APs with SIOCSIWRATE.)
>
> To do that I think the following is needed:
>
> 1. Add 'allowed_rates' field to struct sta_info. It defaults to 0xffffffff.
> (Or perhaps call it 'disabled_rates' and make it default to 0.)
>
Should I add the new field to sta_info or to ieee80211_sub_if_data. If
we added to sta_info then it wont be persistent.
We will loose SIOCSIWRATE restriction once we associate with new AP.
Then in 3
we bitmask sta->curr_rates with ieee80211_sub_if_data::allowed_rates and
this will solve the problem for IBSS as well.
> 2. The SIOCSIWRATE handler: If the interface is not in a STA mode, return
> -EOPNOTSUPP. Otherwise, modify the allowed_rates field of the sta entry
> belonging to the current AP.
>
> 3. Bitmask sta->curr_rates with sta->allowed_rates (or
> ~sta->disabled_rates) in various places (ieee80211_ioctl_add_sta,
> ieee80211_rx_mgmt_assoc_resp, ieee80211_rx_bss_info; please check for other
> places).
>
> In IBSS and AP mode setting this (per-STA, of course, which is not
> supported by WE, btw.) can be useful as well but it can be done later.
>
> Jiri
>
>
Thanks
Mohamed
next prev parent reply other threads:[~2006-10-12 22:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-28 20:45 [PATCH 2/7] d80211: add support for SIOCSIWRATE and SIOCGIWRATE mabbas
2006-08-30 17:19 ` Jouni Malinen
2006-08-30 18:23 ` Mohamed Abbas
2006-09-21 16:40 ` Jiri Benc
2006-09-21 16:59 ` mabbas
2006-09-28 11:38 ` Jiri Benc
2006-10-12 22:35 ` mabbas [this message]
2006-10-18 12:59 ` Jiri Benc
2006-10-18 13:02 ` Johannes Berg
2006-10-18 13:34 ` Jiri Benc
2006-10-18 13:42 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=452EC34F.2010309@linux.intel.com \
--to=mabbas@linux.intel.com \
--cc=jbenc@suse.cz \
--cc=jkm@devicescape.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.