sonyxperiadev / device-sony-lena

10 stars 12 forks source link

[t-mr1] Fix for Wi-Fi #31

Closed bartcubbins closed 10 months ago

bartcubbins commented 10 months ago
  1. boot_wlan is intended only for driver probing and nothing more, it is not intended for state management from the userspace, /dev/wlan is used for this.
  2. Use /dev/wlan as driver control interface. According to the current driver, communication occurs through /dev/wlan interface and using the words ON/OFF[1]. With this change, the driver is now able to detect events that enable or disable Wi-Fi from the userspace:
    wlan: [716:I:HDD] wlan_hdd_state_ctrl_param_write: Wifi Turning On from UI
    android.hardware.wifi@1.0-service: Wifi HAL started
    wlan: [716:I:HDD] wlan_hdd_state_ctrl_param_write: Wifi turning off from UI
    android.hardware.wifi@1.0-service: Wifi HAL stopped

[1] https://github.com/sonyxperiadev/vendor-qcom-opensource-wlan-qcacld-3.0/blob/aosp/LA.UM.9.12.r1/core/hdd/src/wlan_hdd_main.c#L15019-L15020