Giter VIP home page Giter VIP logo

Comments (9)

wigcheng avatar wigcheng commented on August 12, 2024

Try to add one line in init.rc as following:
# Prepare for wifi
setprop wifi.interface wlan0
setprop wifi.direct.interface p2p0

Then rebuild again, thanks

from cookers.

thomasLavocat avatar thomasLavocat commented on August 12, 2024

I've added the propriety, it does not change the behavior in the android interface.
Do you need some logs ?

@@ -76,6 +75,7 @@ on early-boot
     # Prepare for wifi
     setprop wifi.interface wlan0
     setprop wifi.ap.interface wlan0
+    setprop wifi.direct.interface p2p0

from cookers.

wigcheng avatar wigcheng commented on August 12, 2024

Did your WiFi Direct setting page showing any interface name such as "Android_8a68" ???

Yes, provide some log please.

from cookers.

thomasLavocat avatar thomasLavocat commented on August 12, 2024

I made a mistake with the propriety name. I have corrected the property name and it still does not work.
WiFi Direct setting page is not showing any interface name such as "Android_8a68".

Here are the logs :
dmesg_wifidirect_issue.log
logcat_wifidirect_issue.log

For information, the property is well set :

edm1_imx6:/ # getprop wifi.direct.interface
p2p0
edm1_imx6:/ # ndc interface list
110 0 can0
110 0 can1
110 0 eth0
110 0 ip6_vti0
110 0 ip6tnl0
110 0 ip_vti0
110 0 lo
110 0 p2p0
110 0 sit0
110 0 wlan0
200 0 Interface list completed

from cookers.

wigcheng avatar wigcheng commented on August 12, 2024

I think the root cause is NXP has not implement P2P HIDL layer as following log:
08-14 05:43:46.954 788 788 D WifiP2pSettings: NO dashboard tiles for WifiP2pSettings
08-14 05:43:46.996 355 468 D WifiP2pNative: Setup P2P interface
08-14 05:43:46.996 355 468 E HalDevMgr: getAllChipInfo: called but mWifi is null!?
08-14 05:43:46.996 355 468 W HalDevMgr: stopWifi called but mWifi is null!?
08-14 05:43:46.996 355 468 E WifiP2pNative: Failed to create P2p iface in HalDeviceManager
08-14 05:43:46.996 355 468 E WifiP2pService: Failed to setup interface for P2P
08-14 05:43:58.265 355 417 D WificondControl: Scan result ready event
08-14 05:44:38.279 355 723 D WificondControl: Scan result ready event

It need takes some effort to trace, maybe naming issue or really no support WiFi direct on Android 9 (I think it's this one).

I just tested Android 10 and it works fine, NXP was be implement P2P HAL layer, but Android 10 only support IMX8 series, sorry for cause your inconvenience, it could be don't work at this moment.

If you really need this function, please send mail to [email protected] and discuss your requirement, thanks.

from cookers.

wigcheng avatar wigcheng commented on August 12, 2024

I ported WiFi P2P HAL layer already, please issue 'repo sync' for source code upgrading and try again 😄

from cookers.

thomasLavocat avatar thomasLavocat commented on August 12, 2024

Thanks, I will test it this morning.

from cookers.

thomasLavocat avatar thomasLavocat commented on August 12, 2024

It works. Thanks a lot.

from cookers.

wigcheng avatar wigcheng commented on August 12, 2024

Thanks for your feedback, please also feedback to our sales if possible.

from cookers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.