UI control for WiFi. Can't open UI

Source: Internet
Author: User

Part of the main is that you want to know what WiFi as a function, that is, WiFi is only as station function, or to turn on the peer-to function, when the WiFi as station function when the Wpa_supplicant service is opened, when WiFi as peer-to open the function is P2p_ SUPPLICANTF Services.

When the WiFi as station function is turned on is wpa_supplicant, this time generally do not appear interface error, because this time wpa_supplicant service only use Wlan0 interface, The Wlan0 interface is generated by default even if the upper layer does not define the wlan0 underlying driver

When Wi-Fi is turned on as a peer, the interface error may occur because the P2p_supplicant service uses the P2p0 interface, so you need to define the p2p0 in advance p2p_supplicant.

If you do not define the P2p0 interface, but sometimes the P2p_supplicant service is started at the time of loading, because the P2p_supplicant service will use the P2p0 interface, the load failure occurs. So how can you make the system not start the P2p_supplicant service first, but start the Wpa_supplicant service first? This is because your platform/etc/permisssions/directory has android.hardware.wifi.direct.xml this file, as long as the file is deleted or renamed, after the change, remember to reboot to take effect, the operating instructions are as follows:

130| [Email protected]:/etc/permissions# ls-l

-rw-r--r--root root 158 2008-08-01 Amlogic.libplayer.xml

-rw-r--r--root Root 2008-08-01 12:00amlogic.pppoe.xml

-rw-r--r--root Root 168 2008-08-01 12:00amlogic.subtitle.xml

-rw-r--r--root root 975 2008-08-01 Android.hardware.usb.accessory.xml

-rw-r--r--root root 868 2008-08-01 android.hardware.usb.host.xml

-rw-r--r--root root 843 2008-08-01 android.hardware.wifi.direct.xml

-rw-r--r--root Root 829 2008-08-01 android.hardware.wifi.xml

-rw-r--r--root Root 1050 2008-08-01 android.software.live_wallpAPer.xml

-rw-r--r--root Root 880 2008-08-01 12:00android.software.sip.voip.xml

-rw-r--r--root Root 828 2008-08-01 12:00com.android.location.provider.xml

-rw-r--r--root root 828 2008-08-01 12:00com.google.widevine.software.drm.xml

-rw-r--r--root Root 10536 2008-08-01 platform.xml

-rw-r--r--root Root 2614 2008-08-01 12:00tablet_core_hardware.xml

How do you tell if it's p2p_supplicant or wpa_supplicant? Since you started the P2p_supplicant service without defining p2p0, it is clear that the following log is visible from log:

Wpa_supplicant (4316):p 2p0:failed to initialize driver interface


But why does this problem occur? Delete the file directly also not, the file is peer-to file, deleted there is no direct function.
Later, compare the findings. Some directories are missing.

File Address Device/ti/beaglebonebalck/boardconfig.mk
uses_ti_mac80211: = Truewifi_firmware_loader            : = "" Common_global_cflags + =-duses_ti_mac80211

Then you can add it.

UI control for WiFi. Cannot open UI

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.