<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 "Line 2: invalid/unknown driver 'madwifi' ". </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"><<a href="mailto:hostap-request@lists.shmoo.com">hostap-request@lists.shmoo.com</a>></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 'help' 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 "Re: Contents of HostAP digest..."<br><br><br>Today'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 <<a href="mailto:olivier@sobrie.be">olivier@sobrie.be</a>><br>Subject: [PATCH] WPS: Send the credential when learning AP params in<br> registrar role<br>
To: Jouni Malinen <<a href="mailto:j@w1.fi">j@w1.fi</a>><br>Cc: <a href="mailto:hostap@lists.shmoo.com">hostap@lists.shmoo.com</a><br>Message-ID: <<a href="mailto:1312927322-11576-1-git-send-email-olivier@sobrie.be">1312927322-11576-1-git-send-email-olivier@sobrie.be</a>><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 'wps_cred_processing' 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 <<a href="mailto:olivier@sobrie.be">olivier@sobrie.be</a>><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->cred.cred_attr = wpabuf_head(msg);<br>
+ wps->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->wps->ap || wps->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->wps->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->ap_settings_cb) {<br> wps->ap_settings_cb(wps->ap_settings_cb_ctx,<br> &wps->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 <<a href="mailto:sami.m.ahokas@gmail.com">sami.m.ahokas@gmail.com</a>><br>Subject: Re: [ath9k-devel] DWA-556 not working as AP<br>To: Pavel Roskin <<a href="mailto:proski@gnu.org">proski@gnu.org</a>><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> <CAL-=UpSX2v8=N8Lv7mVy=<a href="mailto:GLQWN43faBvt-rLxJxWbgihqex-oQ@mail.gmail.com">GLQWN43faBvt-rLxJxWbgihqex-oQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br><br>2011/8/9 Pavel Roskin <<a href="mailto:proski@gnu.org">proski@gnu.org</a>>:<br>> Quoting sami ahokas <<a href="mailto:sami.m.ahokas@gmail.com">sami.m.ahokas@gmail.com</a>>:<br>
><br>>> Thanks for your reply. I chose to try the MadWifi driver, but now I'm<br>>> not able to set interface to master mode.<br>><br>> When loading the module, use "modprobe ath_pci autocreate=ap"<br>
><br>> That will create an interface in AP mode. ?It's easy to get used to the<br>> niceties of the kernel drivers that can change the mode of an existing<br>> interface.<br>><br>> --<br>> Regards,<br>
> Pavel Roskin<br>><br><br>Thanks again for your help. But now I have next problem and quick<br>googling didn'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 <<a href="mailto:sami.m.ahokas@gmail.com">sami.m.ahokas@gmail.com</a>><br>
Subject: Re: [ath9k-devel] DWA-556 not working as AP<br>To: Pavel Roskin <<a href="mailto:proski@gnu.org">proski@gnu.org</a>><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> <CAL-=<a href="mailto:UpQFCKUS9X_qoB87U1ZokAkTFs829p3K2wBgJ7qe7F7PEA@mail.gmail.com">UpQFCKUS9X_qoB87U1ZokAkTFs829p3K2wBgJ7qe7F7PEA@mail.gmail.com</a>><br>Content-Type: text/plain; charset=ISO-8859-1<br>
<br>2011/8/10 sami ahokas <<a href="mailto:sami.m.ahokas@gmail.com">sami.m.ahokas@gmail.com</a>>:<br>> 2011/8/9 Pavel Roskin <<a href="mailto:proski@gnu.org">proski@gnu.org</a>>:<br>>> Quoting sami ahokas <<a href="mailto:sami.m.ahokas@gmail.com">sami.m.ahokas@gmail.com</a>>:<br>
>><br>>>> Thanks for your reply. I chose to try the MadWifi driver, but now I'm<br>>>> not able to set interface to master mode.<br>>><br>>> When loading the module, use "modprobe ath_pci autocreate=ap"<br>
>><br>>> That will create an interface in AP mode. ?It's easy to get used to the<br>>> niceties of the kernel drivers that can change the mode of an existing<br>>> interface.<br>>><br>>> --<br>
>> Regards,<br>>> Pavel Roskin<br>>><br>><br>> Thanks again for your help. But now I have next problem and quick<br>> googling didn'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>I got that one fixed myself. Some of the kernel modules wasn'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 <<a href="mailto:kaniki.uday@gmail.com">kaniki.uday@gmail.com</a>><br>Subject: Help on simulation<br>
To: <a href="mailto:hostap@lists.shmoo.com">hostap@lists.shmoo.com</a><br>Message-ID:<br> <<a href="mailto:CAOeh9Mur5CF5d%2BFXo6iOo_ZjvRYFAddvg7mQCajR6gCizw4Bpw@mail.gmail.com">CAOeh9Mur5CF5d+FXo6iOo_ZjvRYFAddvg7mQCajR6gCizw4Bpw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<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>