Usb Wifi with android kk4.4.3 on IMX6Q-SABRESD

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Usb Wifi with android kk4.4.3 on IMX6Q-SABRESD

Jump to solution
2,455 Views
ankurrahi1
Contributor II

Hi all,

I am working with android KK 4.4.3 on IMX6Q-SABRESD board. I integrated Ralink usb wifi with it.

while Ping www.google.com , I am getting error: Unknown host www.google.com

but I am able to Ping google.com IP, local host IP and any other global IP.

I found, this error is because of DNS, but I am not able to fix it.

and I do connect WIFI from terminal (command line), How to bring it up on GUI ??

Any help would be appreciated.

Thanks in advance

0 Kudos
1 Solution
1,363 Views
ankurrahi1
Contributor II

Hi Jackie,

I fixed the above issue, try this out, this worked for me.

1. In $android/system/core/init/property-service.c, add below lines in function property_perms

          {"rw.", AID_SYSTEM, 0}

          {"net.", AID_DHCP, 0}

2. In $android/external/dhcpcd/dhcpcd-hook/20-dns.conf

    In function dnsaddr in, add below lines

         setprop dhcp.${interface}

          setprop net.dns${count} $ {dnsaddr}

          setprop net.${interface}.dns ${count}

3. run the commands after running dhcpcd (iface name)

    ndc resolver flushif <iface>

     ndc resolver flushdefaultif

     ndc resolver setifdns <iface> <domain> <dns1> <dns2>

     ndc resolver setdefaultif <iface>

Thanks

Regards

Ankur

View solution in original post

0 Kudos
6 Replies
1,363 Views
saurabh_patel
NXP Pro Support
NXP Pro Support

Hi

Ankur

Check following to add support for Wi-Fi

How to Support New WiFi Card in Android

0 Kudos
1,363 Views
ASTRIHK
Contributor III

I'm facing the same problems as Ankur Rahi, anyone can help?

0 Kudos
1,364 Views
ankurrahi1
Contributor II

Hi Jackie,

I fixed the above issue, try this out, this worked for me.

1. In $android/system/core/init/property-service.c, add below lines in function property_perms

          {"rw.", AID_SYSTEM, 0}

          {"net.", AID_DHCP, 0}

2. In $android/external/dhcpcd/dhcpcd-hook/20-dns.conf

    In function dnsaddr in, add below lines

         setprop dhcp.${interface}

          setprop net.dns${count} $ {dnsaddr}

          setprop net.${interface}.dns ${count}

3. run the commands after running dhcpcd (iface name)

    ndc resolver flushif <iface>

     ndc resolver flushdefaultif

     ndc resolver setifdns <iface> <domain> <dns1> <dns2>

     ndc resolver setdefaultif <iface>

Thanks

Regards

Ankur

0 Kudos
1,363 Views
ASTRIHK
Contributor III

Hi Ankur,

Thanks for your help on fixing the dns issue. But I would like to know more whether you can bring wifi up on GUI. I have modified wifi.c but always gets wlan0: CTRL-EVENT-TERMINATING in logcat. However by commandline, wlan0: CTRL-EVENT-CONNECTED can be got, do you have any suggestions? Thanks.

Jackie

0 Kudos
1,363 Views
ankurrahi1
Contributor II

Hi Jackie,

I am also trying to bring it up on GUI.

Hopefully will get back to you soon.

and If previous answer, solved your problem you can hit like and mark as helpful, it may help others too.

Thanks

Ankur

0 Kudos
1,363 Views
ankurrahi1
Contributor II

Thanks Saurabh,

But this doesn't solve my problem, I have seen this before, driver integration and connection is working properly in my case.

I am facing problem in Pinging www.google.com, it showing me an error: unknown host google.com, whereas google IP ping is working.

I am also trying to bring it up on GUI, if you could help me.

0 Kudos