<div>Thanks Jouni Malinen. I have visited the link you have referred. </div>
<div> </div>
<div>When i run hostapd with the specific .conf file, i have specfied </div>
<div>driver=madwifi in the conf file. But it is throwing error as &quot;Line 2: invalid/unknown driver &#39;madwifi&#39; &quot;. </div>
<div> </div>
<div>Will mac80211_hwsim run without any driver dependency ? </div>
<div> </div>
<div>Thanks for your time. </div>
<div> </div>
<div>-Uday<br><br></div>
<div class="gmail_quote">On Wed, Aug 10, 2011 at 9:30 PM, <span dir="ltr">&lt;<a href="mailto:hostap-request@lists.shmoo.com">hostap-request@lists.shmoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Send HostAP mailing list submissions to<br>       <a href="mailto:hostap@lists.shmoo.com">hostap@lists.shmoo.com</a><br>
<br>To subscribe or unsubscribe via the World Wide Web, visit<br>       <a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>or, via email, send a message with subject or body &#39;help&#39; to<br>
       <a href="mailto:hostap-request@lists.shmoo.com">hostap-request@lists.shmoo.com</a><br><br>You can reach the person managing the list at<br>       <a href="mailto:hostap-owner@lists.shmoo.com">hostap-owner@lists.shmoo.com</a><br>
<br>When replying, please edit your Subject line so it is more specific<br>than &quot;Re: Contents of HostAP digest...&quot;<br><br><br>Today&#39;s Topics:<br><br>  1. [PATCH] WPS: Send the credential when learning AP params in<br>
     registrar role (Olivier Sobrie)<br>  2. Re: [ath9k-devel] DWA-556 not working as AP (sami ahokas)<br>  3. Re: [ath9k-devel] DWA-556 not working as AP (sami ahokas)<br>  4. Help on simulation (uday kiran)<br><br><br>----------------------------------------------------------------------<br>
<br>Message: 1<br>Date: Wed, 10 Aug 2011 00:02:02 +0200<br>From: Olivier Sobrie &lt;<a href="mailto:olivier@sobrie.be">olivier@sobrie.be</a>&gt;<br>Subject: [PATCH] WPS: Send the credential when learning AP params in<br>       registrar       role<br>
To: Jouni Malinen &lt;<a href="mailto:j@w1.fi">j@w1.fi</a>&gt;<br>Cc: <a href="mailto:hostap@lists.shmoo.com">hostap@lists.shmoo.com</a><br>Message-ID: &lt;<a href="mailto:1312927322-11576-1-git-send-email-olivier@sobrie.be">1312927322-11576-1-git-send-email-olivier@sobrie.be</a>&gt;<br>
<br>When the supplicant acts as a registrar to learn the access point<br>parameters then send the credentials to the wpa_cli interface after<br>receiving the 7th message.<br>When setting the option &#39;wps_cred_processing&#39; to 1 or 2 in the<br>
wpa_supplicant.conf you should receive the credential through the<br>wpa control interface.<br><br>Without this patch, after the 7th message you got the WPS-CRED-RECEIVED<br>notification without the credentials. This was because the cred_attr and<br>
cred_attr_len were not filled in in the wps structure.<br><br>Signed-off-by: Olivier Sobrie &lt;<a href="mailto:olivier@sobrie.be">olivier@sobrie.be</a>&gt;<br>---<br> src/wps/wps_registrar.c |   36 ++++++++++++++++++++++++++++++++++++<br>
 1 files changed, 36 insertions(+), 0 deletions(-)<br><br>diff --git a/src/wps/wps_registrar.c b/src/wps/wps_registrar.c<br>index 2d7f632..1f964e7 100644<br>--- a/src/wps/wps_registrar.c<br>+++ b/src/wps/wps_registrar.c<br>
@@ -1592,6 +1592,29 @@ static int wps_build_ap_settings(struct wps_data *wps, struct wpabuf *msg)<br>       return 0;<br> }<br><br>+static int wps_build_ap_cred(struct wps_data *wps, struct wpabuf *msg)<br>+{<br>+       struct wpabuf *plain;<br>
+<br>+       plain = wpabuf_alloc(200);<br>+       if (plain == NULL)<br>+               return -1;<br>+<br>+       if (wps_build_ap_settings(wps, plain)) {<br>+               wpabuf_free(plain);<br>+               return -1;<br>
+       }<br>+<br>+       wpabuf_put_be16(msg, ATTR_CRED);<br>+       wpabuf_put_be16(msg, wpabuf_len(plain));<br>+       wpabuf_put_buf(msg, plain);<br>+       wpabuf_free(plain);<br>+<br>+       wps-&gt;cred.cred_attr = wpabuf_head(msg);<br>
+       wps-&gt;cred.cred_attr_len = wpabuf_len(msg);<br>+<br>+       return 0;<br>+}<br><br> static struct wpabuf * wps_build_m2(struct wps_data *wps)<br> {<br>@@ -2551,6 +2574,8 @@ static void wps_cred_update(struct wps_credential *dst,<br>
 static int wps_process_ap_settings_r(struct wps_data *wps,<br>                                    struct wps_parse_attr *attr)<br> {<br>+       struct wpabuf *msg;<br>+<br>       if (wps-&gt;wps-&gt;ap || wps-&gt;er)<br>
               return 0;<br><br>@@ -2577,12 +2602,23 @@ static int wps_process_ap_settings_r(struct wps_data *wps,<br>                */<br>               wps_registrar_pin_completed(wps-&gt;wps-&gt;registrar);<br><br>+               msg = wpabuf_alloc(1000);<br>
+               if (msg == NULL)<br>+                       return -1;<br>+<br>+               if (wps_build_ap_cred(wps, msg)) {<br>+                       wpabuf_free(msg);<br>+                       return -1;<br>+               }<br>
+<br>               if (wps-&gt;ap_settings_cb) {<br>                       wps-&gt;ap_settings_cb(wps-&gt;ap_settings_cb_ctx,<br>                                           &amp;wps-&gt;cred);<br>+                       wpabuf_free(msg);<br>
                       return 1;<br>               }<br>               wps_sta_cred_cb(wps);<br>+               wpabuf_free(msg);<br>               return 1;<br>       }<br> }<br>--<br>1.7.6<br><br><br><br>------------------------------<br>
<br>Message: 2<br>Date: Wed, 10 Aug 2011 09:30:27 +0300<br>From: sami ahokas &lt;<a href="mailto:sami.m.ahokas@gmail.com">sami.m.ahokas@gmail.com</a>&gt;<br>Subject: Re: [ath9k-devel] DWA-556 not working as AP<br>To: Pavel Roskin &lt;<a href="mailto:proski@gnu.org">proski@gnu.org</a>&gt;<br>
Cc: <a href="mailto:ath9k-devel@lists.ath9k.org">ath9k-devel@lists.ath9k.org</a>, <a href="mailto:hostap@lists.shmoo.com">hostap@lists.shmoo.com</a><br>Message-ID:<br>       &lt;CAL-=UpSX2v8=N8Lv7mVy=<a href="mailto:GLQWN43faBvt-rLxJxWbgihqex-oQ@mail.gmail.com">GLQWN43faBvt-rLxJxWbgihqex-oQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br><br>2011/8/9 Pavel Roskin &lt;<a href="mailto:proski@gnu.org">proski@gnu.org</a>&gt;:<br>&gt; Quoting sami ahokas &lt;<a href="mailto:sami.m.ahokas@gmail.com">sami.m.ahokas@gmail.com</a>&gt;:<br>
&gt;<br>&gt;&gt; Thanks for your reply. I chose to try the MadWifi driver, but now I&#39;m<br>&gt;&gt; not able to set interface to master mode.<br>&gt;<br>&gt; When loading the module, use &quot;modprobe ath_pci autocreate=ap&quot;<br>
&gt;<br>&gt; That will create an interface in AP mode. ?It&#39;s easy to get used to the<br>&gt; niceties of the kernel drivers that can change the mode of an existing<br>&gt; interface.<br>&gt;<br>&gt; --<br>&gt; Regards,<br>
&gt; Pavel Roskin<br>&gt;<br><br>Thanks again for your help. But now I have next problem and quick<br>googling didn&#39;t give me any answers. Here is what I get from hostapd:<br><br>ioctl[IEEE80211_IOCTL_SETPARAM]: Invalid argument<br>
ath0: DRIVER Error enabling WPA/802.1X!<br>IEEE 802.1X initialization failed.<br>ath0: Unable to setup interface.<br>rmdir[ctrl_interface]: No such file or directory<br><br>Why is it complaining about 802.1X? My setup is using WPA-PSK, not<br>
802.1X. Do I miss some modules or have I compiled hostapd or madwifi<br>driver with wrong parameters?<br><br>Sami<br><br><br>------------------------------<br><br>Message: 3<br>Date: Wed, 10 Aug 2011 14:41:53 +0300<br>From: sami ahokas &lt;<a href="mailto:sami.m.ahokas@gmail.com">sami.m.ahokas@gmail.com</a>&gt;<br>
Subject: Re: [ath9k-devel] DWA-556 not working as AP<br>To: Pavel Roskin &lt;<a href="mailto:proski@gnu.org">proski@gnu.org</a>&gt;<br>Cc: <a href="mailto:ath9k-devel@lists.ath9k.org">ath9k-devel@lists.ath9k.org</a>, <a href="mailto:hostap@lists.shmoo.com">hostap@lists.shmoo.com</a><br>
Message-ID:<br>       &lt;CAL-=<a href="mailto:UpQFCKUS9X_qoB87U1ZokAkTFs829p3K2wBgJ7qe7F7PEA@mail.gmail.com">UpQFCKUS9X_qoB87U1ZokAkTFs829p3K2wBgJ7qe7F7PEA@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1<br>
<br>2011/8/10 sami ahokas &lt;<a href="mailto:sami.m.ahokas@gmail.com">sami.m.ahokas@gmail.com</a>&gt;:<br>&gt; 2011/8/9 Pavel Roskin &lt;<a href="mailto:proski@gnu.org">proski@gnu.org</a>&gt;:<br>&gt;&gt; Quoting sami ahokas &lt;<a href="mailto:sami.m.ahokas@gmail.com">sami.m.ahokas@gmail.com</a>&gt;:<br>
&gt;&gt;<br>&gt;&gt;&gt; Thanks for your reply. I chose to try the MadWifi driver, but now I&#39;m<br>&gt;&gt;&gt; not able to set interface to master mode.<br>&gt;&gt;<br>&gt;&gt; When loading the module, use &quot;modprobe ath_pci autocreate=ap&quot;<br>
&gt;&gt;<br>&gt;&gt; That will create an interface in AP mode. ?It&#39;s easy to get used to the<br>&gt;&gt; niceties of the kernel drivers that can change the mode of an existing<br>&gt;&gt; interface.<br>&gt;&gt;<br>&gt;&gt; --<br>
&gt;&gt; Regards,<br>&gt;&gt; Pavel Roskin<br>&gt;&gt;<br>&gt;<br>&gt; Thanks again for your help. But now I have next problem and quick<br>&gt; googling didn&#39;t give me any answers. Here is what I get from hostapd:<br>
&gt;<br>&gt; ioctl[IEEE80211_IOCTL_SETPARAM]: Invalid argument<br>&gt; ath0: DRIVER Error enabling WPA/802.1X!<br>&gt; IEEE 802.1X initialization failed.<br>&gt; ath0: Unable to setup interface.<br>&gt; rmdir[ctrl_interface]: No such file or directory<br>
&gt;<br>&gt; Why is it complaining about 802.1X? My setup is using WPA-PSK, not<br>&gt; 802.1X. Do I miss some modules or have I compiled hostapd or madwifi<br>&gt; driver with wrong parameters?<br>&gt;<br>&gt; Sami<br>&gt;<br>
<br>I got that one fixed myself. Some of the kernel modules wasn&#39;t copied<br>to my target and therefore those errors. So I finally got hostapd<br>running but I got lot of messages about Stuck beacon:<br><br>wifi0: ath_bstuck_tasklet: Stuck beacon; resetting (beacon miss count: 11)<br>
<br>Have I understand correctly that this is a persistent bug that no one<br>has managed to solve? At least at madwifi project page there is a<br>story about stuck beacon problem that seems to be open.<br><br>Sami<br><br>
<br>------------------------------<br><br>Message: 4<br>Date: Wed, 10 Aug 2011 17:41:39 +0530<br>From: uday kiran &lt;<a href="mailto:kaniki.uday@gmail.com">kaniki.uday@gmail.com</a>&gt;<br>Subject: Help on simulation<br>
To: <a href="mailto:hostap@lists.shmoo.com">hostap@lists.shmoo.com</a><br>Message-ID:<br>       &lt;<a href="mailto:CAOeh9Mur5CF5d%2BFXo6iOo_ZjvRYFAddvg7mQCajR6gCizw4Bpw@mail.gmail.com">CAOeh9Mur5CF5d+FXo6iOo_ZjvRYFAddvg7mQCajR6gCizw4Bpw@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br><br>Hi all<br><br>I am a newbie to Wi-Fi. Currently i dont have the wi-fi hardware available<br>with me. So I want to try out hostapd and wpa_supplicant in some kind of<br>
simulation environment. Could some one please suggest me how to set up a<br>simulation environment ?<br><br>-Uday<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://lists.shmoo.com/pipermail/hostap/attachments/20110810/3b401c0d/attachment.html" target="_blank">http://lists.shmoo.com/pipermail/hostap/attachments/20110810/3b401c0d/attachment.html</a><br>
<br>------------------------------<br><br>_______________________________________________<br>HostAP mailing list<br><a href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br><a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
<br><br>End of HostAP Digest, Vol 100, Issue 14<br>***************************************<br></blockquote></div><br>