Lin Ma | 1 Jun 2011 01:04
Favicon

[PATCH] Use the p2p/hostap interface to send frames if moniter interface is not supported

In case that monitor interface is not supported, we create a raw socket to send the frames

Signed-off-by: Lin Ma <linm <at> broadcom.com>
Signed-off-by: Ecco Park <eccopark <at> broadcom.com>
---
 src/drivers/driver_nl80211.c |   32 +++++++++++++++++++++++++++++---
 1 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
old mode 100644
new mode 100755
index 9fa253e..d0c8765
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
 <at>  <at>  -158,6 +158,7  <at>  <at>  struct wpa_driver_nl80211_data {
 	int monitor_sock;
 	int monitor_ifidx;
 	int disable_11b_rates;
+	int raw_sock; /* socket for sending frame if monitor interface is not supported */

 	unsigned int pending_remain_on_chan:1;

 <at>  <at>  -1878,6 +1879,7  <at>  <at>  static void * wpa_driver_nl80211_init(void *ctx, const char *ifname,
 	struct netlink_config *cfg;
 	struct rfkill_config *rcfg;
 	struct i802_bss *bss;
+	struct sockaddr_ll ll;

 	drv = os_zalloc(sizeof(*drv));
 	if (drv == NULL)
(Continue reading)

soumya.sardar | 1 Jun 2011 07:27

Setting delay time in WSC2.0 missing

Cannot see “setting delay time” implemented as part of M7 message building in wpa_supplicant. Please help if I am missing something.

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

_______________________________________________
HostAP mailing list
HostAP <at> lists.shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap
Jouni Malinen | 1 Jun 2011 10:05
Picon

Re: Setting delay time in WSC2.0 missing

On Wed, Jun 01, 2011 at 10:57:44AM +0530, soumya.sardar <at> wipro.com wrote:
> Cannot see "setting delay time" implemented as part of M7 message
> building in wpa_supplicant. Please help if I am missing something.

The new Setting Delay Time attribute is not supported in wpa_supplicant
(or hostapd for that matter). What kind of use case do you have in mind
for this?

--

-- 
Jouni Malinen                                            PGP id EFC895FA
Daniel Halperin | 2 Jun 2011 02:19
Favicon
Gravatar

Re: [ath9k-devel] ath9k ap/client did not acknowledge authentication response

On Tue, May 31, 2011 at 11:09 PM, Mohammed Shafi
<shafi.wireless <at> gmail.com> wrote:
> On Tue, May 31, 2011 at 10:44 PM, Daniel Halperin
>>
>> Any ideas what to do next?
>
> may be a try with dev branch of hostapd
> git clone git://w1.fi/srv/git/hostap.git

Huh. Thanks -- seems to work. That's what I get for using "stable" branches. ;)

Interestingly, this bug doesn't crop up [in hostap-07] with Intel APs.

Dan
Adrien Decostre | 2 Jun 2011 22:11
Picon

Re: Hostapd and FCC certification

Thanks for these information

On Fri, May 27, 2011 at 6:25 PM, Jouni Malinen <j <at> w1.fi> wrote:
On Thu, May 19, 2011 at 08:51:34AM +0200, Adrien Decostre wrote:
> I was wondering about the commercial use of hostapd. Would anyone know if
> this is currently used in commercial systems?

Yes, it is used in quite a few AP designs.

> Would anyone also know if 802.11 access points using hostapd have already
> been FCC certified for use on the 5GHz WiFi band? Has hostapd already
> successfully passed "WiFi alliance" certification tests for
> interoperability?

Yes, many APs with hostapd have been certified for 5 GHz use in US.
Though, it should be noted that hostapd does not really have much (if
anything) to do with this when the driver takes care of the needed
functionality. In other words, the related code may live in the kernel
or in hostapd depending on which driver is being used.

Numerous APs using hostapd have passed Wi-Fi Alliance certification
tests. hostapd is even included in some of the golden testbed devices in
the certification tests for stations.

--
Jouni Malinen                                            PGP id EFC895FA
_______________________________________________
HostAP mailing list
HostAP <at> lists.shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap

_______________________________________________
HostAP mailing list
HostAP <at> lists.shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap
Luis R. Rodriguez | 3 Jun 2011 00:36
Picon
Gravatar

Re: Initial automatic channel selection implementation

On Thu, May 26, 2011 at 5:59 PM, Luis R. Rodriguez <mcgrof <at> gmail.com> wrote:
>  What I'd like to do is to affect the ratio to nullify it if the noise
>  is very low on the channel. Given that noise is logarithmic we'd have
>  to use a logarithmic function as well. Working on that now.

OK I've figured a way to plug the noise into this, I designed the
following function we can use as a factor:

1.1^(x+110)

Wolfram|Alpha boring details of this function:

http://bit.ly/mJNXE9

x,y results of different noise values in dBm, using apcalc:

mcgrof <at> tux ~ $ calc
C-style arbitrary precision calculator (version 2.12.3.3)
Calc is open software. For license details type:  help copyright
[Type "exit" to exit, or "help" for help.]

; define f(x) = 1.1^(x+110)
f(x) defined

; f(-130)
	~0.14864362802414368640
; f(-120)
	~0.38554328942953174736
; f(-119)
	~0.42409761837248492210
; f(-118)
	~0.46650738020973341431
; f(-117)
	~0.51315811823070675574
; f(-116)
	~0.56447393005377743132
; f(-115)
	~0.62092132305915517445
; f(-114)
	~0.68301345536507069189
; f(-113)
	~0.75131480090157776108
; f(-112)
	~0.82644628099173553719
; f(-111)
	~0.90909090909090909091
; f(-110)
	1
; f(-109)
	1.1
; f(-108)
	1.21
; f(-107)
	1.331

So then, we'd use a frequency for initiating beaconing (AP, Mesh, P2P)
which uses the lowest value from the following computation:

(busy time - tx time) / (active time - tx time) * 1.1^(noise + 110)

The 1.1 factor can be modified more accurately to represent the
exponential factor of how noise should affect interference decisions,
the 110 value here can be modified for any other arbitrary value we
find as representative of a regular noise value from a simple AP on
the frequency we are observing, my assumption here was -110 dBm.

If I don't hear yells I'll implement this algorithm, but first I want
to add APIs to let us query for survey data for specific frequencies,
the current stuff assumes the dump data will be useful within the time
period we get it, but the way I'm thinking of doing it is to do each
frequency analysis atomically -- change channel / do offchannel
operation on a frequency, and then get the survey data for that
frequency and compute the above. Then choose the frequency with the
lowest value. This would allow us to do work without regards to any
possible stale data. We could also later add a history of these values
and compute an average and keep picking the best one. Anyway, that's
that. Let me know what you think.

  Luis
_______________________________________________
HostAP mailing list
HostAP <at> lists.shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap
Patrik Modesto | 6 Jun 2011 10:48
Picon

0.6.10 vs 0.7.3-2

Hi,

I'm running Ubuntu Maverick (kernel 2.6.35) with hostapd version
0.6.10 acting as AP on my IX-330 PRISM2 PCMCIA card with WPA2 enabled.
I'm getting "wifi0: hfa384x_cmd: cmd_queue full" from time to time so
I tried to upgrade hostapd to latest version 0.7.3-2. And it's not
working at all. I got three "ioctl[PRISM2_IOCTL_HOSTAPD]: Invalid
argument" after I started hostapd daemon and when a client tries to
connect I see "wifi0: unknown crypto alg 'NONE'" in syslog. I tried to
upgrade the kernel to version 2.6.38 with the same result. I also
tried to load different firmwares in the IX-330 card, but nothing
changed. Where could be the problem?

Attached is my hostapd.conf

Thanks,
P.
Jouni Malinen | 6 Jun 2011 12:05
Picon

Re: [PATCH] Use the p2p/hostap interface to send frames if moniter interface is not supported


On Jun 1, 2011, at 2:04 AM, Lin Ma wrote:

> In case that monitor interface is not supported, we create a raw socket to send the frames

> +	drv->raw_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
> +	ll.sll_family = AF_PACKET;
> +	ll.sll_ifindex = drv->ifindex;
> +	if (bind(drv->raw_sock, (struct sockaddr *) &ll, sizeof(ll)) < 0) {

Hmm.. So this would be 802.11 frame on the interface that is normally used to send Ethernet frames or am I
missing something here? If that is the case, this looks a bit odd. I think it would be better to use the
nl80211 commands that are used in station mode rather than trying to define a new way of sending 802.11
management frames in AP mode.

- Jouni
Davide | 7 Jun 2011 11:35
Picon
Favicon

R: 0.6.10 vs 0.7.3-2

I think that attachmenta will not be put trough to the mailing list.
You might like to strip comments from hostapd.conf and paste it in the email.

What driver are you using with your card ?

Regards
David

--- Lun 6/6/11, Patrik Modesto <patrik.modesto <at> gmail.com> ha scritto:

> Da: Patrik Modesto <patrik.modesto <at> gmail.com>
> Oggetto: 0.6.10 vs 0.7.3-2
> A: hostap <at> lists.shmoo.com
> Data: Lunedì 6 giugno 2011, 10:48
> Hi,
> 
> I'm running Ubuntu Maverick (kernel 2.6.35) with hostapd
> version
> 0.6.10 acting as AP on my IX-330 PRISM2 PCMCIA card with
> WPA2 enabled.
> I'm getting "wifi0: hfa384x_cmd: cmd_queue full" from time
> to time so
> I tried to upgrade hostapd to latest version 0.7.3-2. And
> it's not
> working at all. I got three "ioctl[PRISM2_IOCTL_HOSTAPD]:
> Invalid
> argument" after I started hostapd daemon and when a client
> tries to
> connect I see "wifi0: unknown crypto alg 'NONE'" in syslog.
> I tried to
> upgrade the kernel to version 2.6.38 with the same result.
> I also
> tried to load different firmwares in the IX-330 card, but
> nothing
> changed. Where could be the problem?
> 
> Attached is my hostapd.conf
> 
> Thanks,
> P.
> _______________________________________________
> HostAP mailing list
> HostAP <at> lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
> 
Patrik Modesto | 7 Jun 2011 12:48
Picon

Re: 0.6.10 vs 0.7.3-2

I use mostly the default, changed just interface, driver, ssid,
hw_mode, channel and wpa*. Here goes the stripped conf:

interface=wlan1
driver=hostap
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=pm
hw_mode=b
channel=7
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0
wmm_enabled=1
wmm_ac_bk_cwmin=4
wmm_ac_bk_cwmax=10
wmm_ac_bk_aifs=7
wmm_ac_bk_txop_limit=0
wmm_ac_bk_acm=0
wmm_ac_be_aifs=3
wmm_ac_be_cwmin=4
wmm_ac_be_cwmax=10
wmm_ac_be_txop_limit=0
wmm_ac_be_acm=0
wmm_ac_vi_aifs=2
wmm_ac_vi_cwmin=3
wmm_ac_vi_cwmax=4
wmm_ac_vi_txop_limit=94
wmm_ac_vi_acm=0
wmm_ac_vo_aifs=2
wmm_ac_vo_cwmin=2
wmm_ac_vo_cwmax=3
wmm_ac_vo_txop_limit=47
wmm_ac_vo_acm=0
ieee8021x=0
eapol_key_index_workaround=0
eap_server=0
own_ip_addr=127.0.0.1
wpa=2
wpa_psk_file=/etc/hostapd/hostapd.wpa_psk
wpa_key_mgmt=WPA-PSK

Regards,
Patrik

Gmane