<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 &lt; /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&nbsp; ?<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 &lt;j@w1.fi&gt;<br><b><span
 style="font-weight: bold;">To:</span></b> Ahmad Ali Tabassam &lt;ahmadthe8@yahoo.com&gt;<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>&gt; 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.&nbsp; 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>&nbsp; * @NL80211_CMD_SET_MESH_PARAMS: Set mesh networking properties for the<br>&nbsp; *&nbsp; &nbsp; &nbsp; interface identified by %NL80211_ATTR_IFINDEX<br>&nbsp; *<br>+ * @NL80211_CMD_SET_VIF: Set virtual interface attributes for vif identified by<br>+ *&nbsp;&nbsp;&nbsp; %NL80211_ATTR_IFINDEX.<br>+ *<br>&nbsp; * @NL80211_CMD_MAX: highest used command number<br>&nbsp; * @__NL80211_CMD_AFTER_LAST: internal use<br>&nbsp; */<br>@@ -178,6 +181,8 @@ enum nl80211_commands {<br> &nbsp;&nbsp;&nbsp; NL80211_CMD_GET_MESH_PARAMS,<br> &nbsp;&nbsp;&nbsp; NL80211_CMD_SET_MESH_PARAMS,<br> <br>+&nbsp;&nbsp;&nbsp; NL80211_CMD_SET_VIF,<br>+<br> &nbsp;&nbsp;&nbsp; /* add new commands above here */<br> <br> &nbsp;&nbsp;&nbsp; /* used to define NL80211_CMD_MAX below */<br>@@ -190,6 +195,7 @@ enum nl80211_commands {<br>&nbsp; * here<br>&nbsp; */<br> #define NL80211_CMD_SET_BSS NL80211_CMD_SET_BSS<br>+#define
 NL80211_CMD_SET_VIF NL80211_CMD_SET_VIF<br> <br> /**<br>&nbsp; * enum nl80211_attrs - nl80211 netlink attributes<br>@@ -284,6 +290,11 @@ enum nl80211_commands {<br>&nbsp; *&nbsp;&nbsp;&nbsp; supported interface types, each a flag attribute with the number<br>&nbsp; *&nbsp;&nbsp;&nbsp; of the interface mode.<br>&nbsp; *<br>+ * @NL80211_ATTR_VIF_DROP_UNENCRYPTED: whether unencrypted frames will be<br>+ *&nbsp;&nbsp;&nbsp; dropped (u8, 0 or 1)<br>+ * @NL80211_ATTR_VIF_USERSPACE_MLME: whether userspace MLME is used<br>+ *&nbsp;&nbsp;&nbsp; (u8, 0 or 1)<br>+ *<br>&nbsp; * @NL80211_ATTR_MAX: highest attribute number currently defined<br>&nbsp; * @__NL80211_ATTR_AFTER_LAST: internal use<br>&nbsp; */<br>@@ -348,6 +359,9 @@ enum nl80211_attrs {<br> <br> &nbsp;&nbsp;&nbsp; NL80211_ATTR_KEY_DEFAULT_MGMT,<br> <br>+&nbsp;&nbsp;&nbsp; NL80211_ATTR_VIF_DROP_UNENCRYPTED,<br>+&nbsp;&nbsp;&nbsp; NL80211_ATTR_VIF_USERSPACE_MLME,<br>+<br> &nbsp;&nbsp;&nbsp; /* add
 attributes here, update the policy in nl80211.c */<br> <br> &nbsp;&nbsp;&nbsp; __NL80211_ATTR_AFTER_LAST,<br><br>-- <br>Jouni Malinen&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PGP id EFC895FA<br></div></div></div><br>

      </body></html>