From: Johannes Berg <johannes@sipsolutions.net>
To: linux-wireless@vger.kernel.org
Subject: Re: [RFT 1/4] mac80211: make master netdev handling sane
Date: Tue, 08 Jul 2008 12:42:24 +0200 [thread overview]
Message-ID: <1215513745.9610.22.camel@johannes.berg> (raw)
In-Reply-To: <20080705235012.501072000@sipsolutions.net> (sfid-20080706_015140_641922_45522129)
[-- Attachment #1: Type: text/plain, Size: 1641 bytes --]
On Sun, 2008-07-06 at 01:47 +0200, Johannes Berg wrote:
> plain text document attachment (004-mac80211-master-not-ap.patch)
> Currently, almost every interface type has a 'bss' pointer
> pointing to BSS information. This BSS information, however,
> is for a _local_ BSS, not for the BSS we joined, so having
> it on a STA mode interface makes little sense, but now they
> have it pointing to the master device, which is an AP mode
> virtual interface. However, except for some bitrate control
> data, this pointer is only used in AP/VLAN modes (for power
> saving stations.)
>
> Overall, it is not necessary to even have the master netdev
> be a valid virtual interface, and it doesn't have to be on
> the list of interfaces either.
>
> This patch changes the master netdev to be special, it now
> - no longer is on the list of virtual interfaces, which
> lets me remove a lot of tests for that
> - no longer has sub_if_data attached, since that isn't used
>
> Additionally, this patch changes some vlan/ap mode handling
> that is related to these 'bss' pointers described above (but
> in the VLAN case they actually make sense because there they
> point to the AP they belong to); it also adds some debugging
> code to IEEE80211_DEV_TO_SUB_IF to validate it is not called
> on the master netdev any more.
> list_for_each_entry_rcu(sdata, &local->interfaces, list) {
> -
> - /* No need to wake the master device. */
> - if (sdata->dev == local->mdev)
> - continue;
> -
Just noticed that the patch was missing two hunks like that, I'll post
with them when I post this for good.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2008-07-08 10:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-05 23:47 [RFT 0/4] mac80211 improvements Johannes Berg
2008-07-05 23:47 ` [RFT 1/4] mac80211: make master netdev handling sane Johannes Berg
2008-07-06 13:44 ` Kalle Valo
2008-07-08 10:03 ` Johannes Berg
2008-07-08 10:42 ` Johannes Berg [this message]
2008-07-05 23:47 ` [RFT 2/4] mac80211: revamp virtual interface handling Johannes Berg
2008-07-05 23:47 ` [RFT 3/4] mac80211: push interface checks down Johannes Berg
2008-07-05 23:47 ` [RFT 4/4] mac80211: revamp beacon configuration Johannes Berg
2008-07-08 11:53 ` [RFT 0/4] mac80211 improvements Ivo van Doorn
2008-07-08 11:51 ` 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=1215513745.9610.22.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).