[maemo-developers] Question about WLAN
From: swaroop k.s swaroop_ks at yahoo.comDate: Wed Jun 20 01:56:47 EEST 2007
- Previous message: scratchbox login failure on Fedora7
- Next message: Question about WLAN
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thanks for the reply, Unfortunately, the problem still remains. I think the bug suggests that not all visible APs will be reported (4K limit?). But, what I am experiencing is that the scan reports only 1 AP, the one to which N800 is connected to. I looked at osso-wlan, it sends a ioctl request with SIOCGIWSCAN, and reports the results. But, for some reason, it just reports one AP. I even tried issuing SIOCSIWSCAN to initiate a scan, but the call is always returning -1. I'm not really sure why. I did not completely follow how to wait for the wireless scan event. Can you expand a little more on that? or point me in the right direction? But, as I mentioned earlier, if I use the provided UI (to select the AP), through the "Change Connection.." option, I do get more than 1 result. So, what is the method call through the "change connection..." option? is it available to the public? Thank you, ----- Original Message ---- From: Kalle Valo <Kalle.Valo at nokia.com> To: ext swaroop k.s <swaroop_ks at yahoo.com> Cc: maemo-developers at maemo.org Sent: Tuesday, June 19, 2007 12:13:45 PM Subject: Re: Question about WLAN "ext swaroop k.s" <swaroop_ks at yahoo.com> writes: > I went through the lists to see if I could get my question answered > there, but could not find enough information. > > I am developing an application which will need information about the > visible WiFi access points at periodic intervals. But, (possibly due > to the power saving mode) N800 does not list all the visible APs > through the wireless extensions (iwlist), especially when the device > is already associated with an access point. You are seeing this bug: https://bugs.maemo.org/show_bug.cgi?id=1106 It's a bug in WLAN driver. The results are not ready until driver sends SIOCGIWSCAN event. The results will be partial until the event is sent. > Things I've tried so far: > 1. Tried setting the WLAN_SLEEP_TIMEOUT thorugh gconftool > 2. Tried fiddling with the osso-wlan sources > 3. Tried using the conic api > > But, the problem seems to be something beyond all these? am I right? > Also, I do see there is something that can solve this. Through the > WLAN connectivity UI, if I select "Change connections", I can see all > the access points in the user Interface. So, I think there is a way of > getting this information. Can anyone shed some light on this? > > Does anyone know how to get around this? You can workaround this by waiting for the wireless extensions scan event before getting the scan results from the driver. See how osso-wlan does it. But as I said, this a bug in WLAN driver and will be fixed some time in future. -- Kalle Valo ____________________________________________________________________________________ Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545469
- Previous message: scratchbox login failure on Fedora7
- Next message: Question about WLAN
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]