<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Thanks Jouni,<br>But he patch needed wpa_supplicant with the nl80211.h (send in your mail, plz see below) in<br>order to get the needed nl80211 command for enabling userspace MLME.<br>It can't be applied successfully wpa_supplicant 0.6.7 the error is given below<br><br>root@AP2:/usr/src/wpa_supplicant-0.6.7# patch -p1 --dry-run < /usr/src/wpa.patch<br>patching file src/common/nl80211_copy.h<br>Hunk #2 FAILED at 181.<br>patch: **** malformed patch at line 29: /**<br><br>what is going wrong ?<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Jouni Malinen <j@w1.fi><br><b><span
style="font-weight: bold;">To:</span></b> Ahmad Ali Tabassam <ahmadthe8@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b> johannes@sipsolutions.net; hostap@lists.shmoo.com; linux-wireless@vger.kernel.org<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, January 8, 2009 1:44:58 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [patch] vif_conf.patch failed to patch git wireless-testing (07-01-2009)<br></font><br>
On Wed, Jan 07, 2009 at 07:21:51AM -0800, Ahmad Ali Tabassam wrote:<br><br>> I want to enable userspace mlme for my client for wpa_supplicant 0.6.7 with client MLME. . But the <a href="http://w1.fi/wireless-testing/vif_conf.patch" target="_blank">http://w1.fi/wireless-testing/vif_conf.patch</a> failed to be applied. I have the latest wireless-testing git tree (07-01-09). The error is given below............any idea. does there any new pathch?<br><br>I updated the patches at <a href="http://w1.fi/wireless-testing/" target="_blank">http://w1.fi/wireless-testing/</a> now and the<br>version there seemed to work in my tests. However, you will now also<br>need to patch wpa_supplicant with the nl80211.h (see patch below) in<br>order to get the needed nl80211 command for enabling userspace MLME.<br><br><br>diff --git a/src/common/nl80211_copy.h b/src/common/nl80211_copy.h<br>index ee742bc..47f9531 100644<br>--- a/src/common/nl80211_copy.h<br>+++
b/src/common/nl80211_copy.h<br>@@ -133,6 +133,9 @@<br> * @NL80211_CMD_SET_MESH_PARAMS: Set mesh networking properties for the<br> * interface identified by %NL80211_ATTR_IFINDEX<br> *<br>+ * @NL80211_CMD_SET_VIF: Set virtual interface attributes for vif identified by<br>+ * %NL80211_ATTR_IFINDEX.<br>+ *<br> * @NL80211_CMD_MAX: highest used command number<br> * @__NL80211_CMD_AFTER_LAST: internal use<br> */<br>@@ -178,6 +181,8 @@ enum nl80211_commands {<br> NL80211_CMD_GET_MESH_PARAMS,<br> NL80211_CMD_SET_MESH_PARAMS,<br> <br>+ NL80211_CMD_SET_VIF,<br>+<br> /* add new commands above here */<br> <br> /* used to define NL80211_CMD_MAX below */<br>@@ -190,6 +195,7 @@ enum nl80211_commands {<br> * here<br> */<br> #define NL80211_CMD_SET_BSS NL80211_CMD_SET_BSS<br>+#define
NL80211_CMD_SET_VIF NL80211_CMD_SET_VIF<br> <br> /**<br> * enum nl80211_attrs - nl80211 netlink attributes<br>@@ -284,6 +290,11 @@ enum nl80211_commands {<br> * supported interface types, each a flag attribute with the number<br> * of the interface mode.<br> *<br>+ * @NL80211_ATTR_VIF_DROP_UNENCRYPTED: whether unencrypted frames will be<br>+ * dropped (u8, 0 or 1)<br>+ * @NL80211_ATTR_VIF_USERSPACE_MLME: whether userspace MLME is used<br>+ * (u8, 0 or 1)<br>+ *<br> * @NL80211_ATTR_MAX: highest attribute number currently defined<br> * @__NL80211_ATTR_AFTER_LAST: internal use<br> */<br>@@ -348,6 +359,9 @@ enum nl80211_attrs {<br> <br> NL80211_ATTR_KEY_DEFAULT_MGMT,<br> <br>+ NL80211_ATTR_VIF_DROP_UNENCRYPTED,<br>+ NL80211_ATTR_VIF_USERSPACE_MLME,<br>+<br> /* add
attributes here, update the policy in nl80211.c */<br> <br> __NL80211_ATTR_AFTER_LAST,<br><br>-- <br>Jouni Malinen PGP id EFC895FA<br></div></div></div><br>
</body></html>