[patch] vif_conf.patch failed to patch git wireless-testing (07-01-2009)

Ahmad Ali Tabassam ahmadthe8 at yahoo.com
Thu Jan 8 10:32:14 EST 2009


Thanks Jouni,
But he patch needed wpa_supplicant with the nl80211.h (send in your mail, plz see below) in
order to get the needed nl80211 command for enabling userspace MLME.
It can't be applied successfully wpa_supplicant 0.6.7 the error is given below

root at AP2:/usr/src/wpa_supplicant-0.6.7# patch -p1 --dry-run < /usr/src/wpa.patch
patching file src/common/nl80211_copy.h
Hunk #2 FAILED at 181.
patch: **** malformed patch at line 29: /**

what is going wrong  ?




________________________________
From: Jouni Malinen <j at w1.fi>
To: Ahmad Ali Tabassam <ahmadthe8 at yahoo.com>
Cc: johannes at sipsolutions.net; hostap at lists.shmoo.com; linux-wireless at vger.kernel.org
Sent: Thursday, January 8, 2009 1:44:58 PM
Subject: Re: [patch] vif_conf.patch failed to patch git wireless-testing (07-01-2009)

On Wed, Jan 07, 2009 at 07:21:51AM -0800, Ahmad Ali Tabassam wrote:

> I want to enable userspace mlme for my client for wpa_supplicant 0.6.7 with client MLME. . But the http://w1.fi/wireless-testing/vif_conf.patch 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?

I updated the patches at http://w1.fi/wireless-testing/ now and the
version there seemed to work in my tests. However, you will now also
need to patch wpa_supplicant with the nl80211.h (see patch below) in
order to get the needed nl80211 command for enabling userspace MLME.


diff --git a/src/common/nl80211_copy.h b/src/common/nl80211_copy.h
index ee742bc..47f9531 100644
--- a/src/common/nl80211_copy.h
+++ b/src/common/nl80211_copy.h
@@ -133,6 +133,9 @@
  * @NL80211_CMD_SET_MESH_PARAMS: Set mesh networking properties for the
  *      interface identified by %NL80211_ATTR_IFINDEX
  *
+ * @NL80211_CMD_SET_VIF: Set virtual interface attributes for vif identified by
+ *    %NL80211_ATTR_IFINDEX.
+ *
  * @NL80211_CMD_MAX: highest used command number
  * @__NL80211_CMD_AFTER_LAST: internal use
  */
@@ -178,6 +181,8 @@ enum nl80211_commands {
    NL80211_CMD_GET_MESH_PARAMS,
    NL80211_CMD_SET_MESH_PARAMS,

+    NL80211_CMD_SET_VIF,
+
    /* add new commands above here */

    /* used to define NL80211_CMD_MAX below */
@@ -190,6 +195,7 @@ enum nl80211_commands {
  * here
  */
#define NL80211_CMD_SET_BSS NL80211_CMD_SET_BSS
+#define NL80211_CMD_SET_VIF NL80211_CMD_SET_VIF

/**
  * enum nl80211_attrs - nl80211 netlink attributes
@@ -284,6 +290,11 @@ enum nl80211_commands {
  *    supported interface types, each a flag attribute with the number
  *    of the interface mode.
  *
+ * @NL80211_ATTR_VIF_DROP_UNENCRYPTED: whether unencrypted frames will be
+ *    dropped (u8, 0 or 1)
+ * @NL80211_ATTR_VIF_USERSPACE_MLME: whether userspace MLME is used
+ *    (u8, 0 or 1)
+ *
  * @NL80211_ATTR_MAX: highest attribute number currently defined
  * @__NL80211_ATTR_AFTER_LAST: internal use
  */
@@ -348,6 +359,9 @@ enum nl80211_attrs {

    NL80211_ATTR_KEY_DEFAULT_MGMT,

+    NL80211_ATTR_VIF_DROP_UNENCRYPTED,
+    NL80211_ATTR_VIF_USERSPACE_MLME,
+
    /* add attributes here, update the policy in nl80211.c */

    __NL80211_ATTR_AFTER_LAST,

-- 
Jouni Malinen                                            PGP id EFC895FA



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20090108/ed52fd66/attachment-0001.htm 


More information about the HostAP mailing list