wifi - signal strength

317 views
Skip to first unread message

guru

unread,
Aug 27, 2010, 5:05:27 AM8/27/10
to android-porting
HI All,

I ported(enabled) wifi successfully on froyo. It is connecting to AP
and showing signal strength. But it is not showing any signal strength
on the icon which displayed on the Notice Bar.

Is this problem at application layer or down the layer? Where I need
to look into? I need some info, next I will debug it.

Thanks
Gururaja B O

Robert Greenwalt

unread,
Aug 27, 2010, 12:36:38 PM8/27/10
to guru....@gmail.com, android-porting
You say it is "showing signal strength" yet it is "not showing any signal strength on the icon which displayed on the Notice Bar".  Where *is* it showing signal strength?  In the settings app?  That is probably just in the scan results.

There is a notification that the wifi code sends out for the sig str of the current network.  You are probably not sending that correctly.

R

Gururaj BO

unread,
Aug 28, 2010, 12:32:09 AM8/28/10
to Robert Greenwalt, android-porting
Hi Robert,

Yes it is not showing signal strength on the icon which is displayed on the Notification bar. As you told it is showing signal strength in settings app which is scan results?.

I checked the return value of Native command getRssiCommand() which is returning -1 which is not a valid value, I think . I tried to set some valid value, then it was showing signal strength.

Is it problem in wpa supplicant not returning correct value, since in scan result showing signal strength or problem in application level only?

Thanks
Gururaja

Robert Greenwalt

unread,
Aug 30, 2010, 1:52:53 PM8/30/10
to Gururaj BO, android-porting
If the supplicant is returning an invalid signal strength, it's a supplicant issue, not the applications fault.

R

Irfan Sheriff

unread,
Aug 30, 2010, 11:51:45 PM8/30/10
to Gururaj BO, android-porting
Look at wpa_cli for checking on values returned from supplicant

# wpa_cli driver rssi

It could be that the driver ioctls are failing.

guru

unread,
Aug 31, 2010, 12:22:34 AM8/31/10
to android-porting
Hi Irfan,

Yes driver ioctls were failing. I made correction in that, now it is
showing signal strength.

Thanks
Gururaja B O

On Aug 31, 8:51 am, Irfan Sheriff <isher...@gmail.com> wrote:
> Look at wpa_cli for checking on values returned from supplicant
>
> # wpa_cli driver rssi
>
> It could be that the driver ioctls are failing.
>
> On Mon, Aug 30, 2010 at 10:52 AM, Robert Greenwalt <rgreenw...@google.com>wrote:
>
> > If the supplicant is returning an invalid signal strength, it's a
> > supplicant issue, not the applications fault.
>
> > R
>
> > On Fri, Aug 27, 2010 at 9:32 PM, Gururaj BO <guru.nav...@gmail.com> wrote:
>
> >> Hi Robert,
>
> >> Yes it is not showing signal strength on the icon which is displayed on
> >> the Notification bar. As you told it is showing signal strength in settings
> >> app which is scan results?.
>
> >> I checked the return value of Native command *getRssiCommand*() which is
> >> returning -1 which is not a valid value, I think . I tried to set some valid
> >> value, then it was showing signal strength.
>
> >> Is it problem in wpa supplicant not returning correct value, since in scan
> >> result showing signal strength or problem in application level only?
>
> >> Thanks
> >> Gururaja
>
> >> On Fri, Aug 27, 2010 at 10:06 PM, Robert Greenwalt <rgreenw...@google.com
> >> > wrote:
>
> >>> You say it is "showing signal strength" yet it is "not showing any signal
> >>> strength on the icon which displayed on the Notice Bar".  Where *is* it
> >>> showing signal strength?  In the settings app?  That is probably just in the
> >>> scan results.
>
> >>> There is a notification that the wifi code sends out for the sig str of
> >>> the current network.  You are probably not sending that correctly.
>
> >>> R
>
> >>> On Fri, Aug 27, 2010 at 2:05 AM, guru <guru.nav...@gmail.com> wrote:
>
> >>>> HI All,
>
> >>>> I ported(enabled) wifi successfully on froyo. It is connecting to AP
> >>>> and showing signal strength. But it is not showing any signal strength
> >>>> on the icon which displayed on the Notice Bar.
>
> >>>> Is this problem at application layer or down the layer? Where I need
> >>>> to look into? I need some info, next I will debug it.
>
> >>>> Thanks
> >>>> Gururaja B O
>
> >>>> --
> >>>> unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> >>>> website:http://groups.google.com/group/android-porting
>
> >  --
> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting

ffxx68

unread,
May 14, 2013, 5:11:16 AM5/14/13
to android...@googlegroups.com
Hi,

maybe a bit late here... but I'm facing exactly the same issue on my JB porting.
I'd like to understand what has been done to solve it.
What do you mean by "driver ioctls are failing"?
What have you debugged/fixed?

thanks
Fabio

ffxx68

unread,
May 16, 2013, 4:18:38 AM5/16/13
to android...@googlegroups.com
After checking source code a bit, I figured out where the problem was.
The link to the signal_poll driver function was missing, in my external/wpa_supplicant_8/src/drivers/driver_wext.c.
Added below line:

const struct wpa_driver_ops wpa_driver_wext_ops = {
        ...
        .signal_poll = wpa_driver_signal_poll,

solved the problem, as WiFi signal level is shown on notification bar icon!
Reply all
Reply to author
Forward
0 new messages