On Wed, 2012-03-07 at 22:47 +0800, Yeoh Chun-Yeow wrote: > Hi, Johannes > > > Does meshd-nl80211 set the station flag NL80211_STA_FLAG_AUTHENTICATED > > before the key? > > The key is installed before the set the station flag > NL80211_STA_FLAG_AUTHENTICATED. > > /* key to encrypt/decrypt unicast data AND mgmt traffic to/from this peer */ > install_key(&nlcfg, peer, CIPHER_CCMP, NL80211_KEYTYPE_PAIRWISE, 0, mtk); > ..... > set_authenticated_flag(&nlcfg, peer); Does it work if you turn it around? Are there any problems with doing so? This is solvable in the kernel, but probably harder, and impossible if you wanted to use crypto algorithms that mac80211 doesn't support in software. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html