On Fri, 2009-08-14 at 13:50 +0800, Johannes Berg wrote: > On Fri, 2009-08-14 at 12:17 +0800, Zhu Yi wrote: > > > Johannes, I think we need a way in cfg80211 to tell connect vs. > > auth/assoc. The current capability method (nl80211_send_wiphy) cannot do > > this. For example, > > > > if (dev->ops->connect || dev->ops->auth) > > NLA_PUT_U32(msg, i, NL80211_CMD_CONNECT); > > > > We need to either make NL80211_CMD_CONNECT only depends on ops->connect > > or make NL80211_CMD_AUTH depends on ops->auth. Johannes, which one do > > you prefer? > > The latter is already there as far as I can see? > > CMD(auth, AUTHENTICATE); > CMD(assoc, ASSOCIATE); > CMD(deauth, DEAUTHENTICATE); > CMD(disassoc, DISASSOCIATE); > > so you should be able to check for these. My bad. I'll use NL80211_CMD_AUTHENTICATE. Thanks, -yi -- 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