Can hostap&madwifi support several bcast keys of one AP?
Tue Oct 14 03:06:20 PDT 2008
Thank u for ur letters.
Follow ur advice, i deployed hostap-0.6.4 based on the
wireless-testing.git, with AP mode patch.(use ath5k)
hostapd works well.thank u:)
1. But i'm worried about the nl80211 can set vlan for
different vlans, because the function:
it seems that vlan_id will not be used.
so how does the driver know which vlan the sta should
static int i802_set_sta_vlan(void *priv, const u8
const char *ifname, int
struct i802_driver_data *drv = priv;
struct nl_msg *msg;
int ret = -1;
msg = nlmsg_alloc();
genlmsg_put(msg, 0, 0,
0, NL80211_CMD_SET_STATION, 0);
NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN,
ret = 0;
if (nl_send_auto_complete(drv->nl_handle, msg)
< 0 ||
(errno = nl_wait_for_ack(drv->nl_handle) <
ret = -1;
2. Besides, if hostap and mac80211 do support vlans
and encryption with different GTKs for differnet
i hope to deploy a wireless system and test this
But i'm not sure the atheros 5k chipset and its driver
can support this function. So would u mind show me ur
environment(wireless chipset, operation system
version, hostapd version...) that can realize this
function as ur former letters?
Thanks in advance!
--- Jouni Malinen <j at w1.fi>??:
> On Sat, Sep 27, 2008 at 10:46:00AM +0800, ?h wrote:
> > 1. I find that is 802.11i, it is said that:
> > The GTK shall be derived from the GMK by
> > GTK ? PRF-X(GMK, ?Group key expansion? || AA ||
> > GNonce)
> > AA is the AP's bssid, and if there is only ONE
> > or ONE VAP, how can I generate two different GTKs?
> By using different GMK and/or GNonce value.
> > I read the hostap's source and find that it will
> > different GMK by "hostapd_get_rand". Is it because
> > function be called at different time to generate
> > different GMK, and then to generate different GTK?
> hostapd has separate data entries for each group key
> and as such, GMK
> can be different for GTK derivation.
> > According to Jouni's letter, if wlan is deployed
> > ath9k + mac80211-based drivers + hostap + some
> > patch, the function above will be realized??
> It may. I haven't tested this with ath9k and the
> current mac80211, but
> the original IEEE 802.11 code that used as basis for
> mac80211 did indeed
> support this.
> > If it does, where to obtain the ath9k's
> > drivers?
> It's included in the current Linux kernel tree;
> wireless-testing git
> tree could be the best starting point since it has
> the latest available
> code and AP mode is likely to require quite recent
> > What is the "a minimal patch to enable AP mode in
> > kernel code" and where to obtain it?
> Jouni Malinen
> PGP id EFC895FA
> HostAP mailing list
> HostAP at lists.shmoo.com
More information about the Hostap