From: Johannes Berg <johannes@sipsolutions.net>
To: Jouni Malinen <j@w1.fi>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: hostapd: passing sta info struct to drivers?
Date: Thu, 27 Sep 2007 18:46:39 +0200 [thread overview]
Message-ID: <1190911599.5021.4.camel@johannes.berg> (raw)
[-- Attachment #1: Type: text/plain, Size: 908 bytes --]
Hi,
During porting the STA management to nl80211 it turned out that it would
be much nicer in the kernel if we would always set all the flags on a
STA that the kernel needs to get from hostapd.
To implement that, it would be good to simply pass the sta_info
structure, e.g. we currently have this code:
if (sta->flags & WLAN_STA_WME)
hostapd_sta_set_flags(hapd, sta->addr, WLAN_STA_WME, ~0);
else
hostapd_sta_set_flags(hapd, sta->addr, 0, ~WLAN_STA_WME);
and that would become
hostapd_sta_set_flags(hapd, sta, WLAN_STA_WME);
or
hostapd_sta_set_flags(hapd, sta->flags, WLAN_STA_WME);
where the third parameter indicates which flag may have changed and the
nl80211 driver would simply use only the flags.
Do you see any issues with that? Are there sometimes flag changes that
we do not want to commit to the kernel?
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
next reply other threads:[~2007-09-27 16:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-27 16:46 Johannes Berg [this message]
2007-09-27 17:56 ` hostapd: passing sta info struct to drivers? Johannes Berg
2007-09-28 1:16 ` Jouni Malinen
2007-09-28 10:59 ` Johannes Berg
2007-09-28 16:06 ` 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=1190911599.5021.4.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=j@w1.fi \
--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