wifi_hal: Fix access check of control param file

Currently, the driver control param file is created write-only,
so fix the check:


More importantly the open below uses O_WRONLY as only a write is
necessary, there is no need to check for read access.
Otherwise, WiFi fails to be enabled:

WifiHAL : Failed to access driver state control param Permission denied, 13 at /sys/kernel/boot_wlan/boot_wlan

Fixes: 8996467be9 ("wifihal: Update driver control param to check driver is ready")
Test: Manual build and functionality test
Signed-off-by: Pablo Mendez Hernandez <pablomh@gmail.com>
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Change-Id: If6308cd790c69d2d57815ef6815c779258005eff
1 file changed
tree: 7a885e989997adbc88d2c6e61b600057c420a523
  1. Android.mk
  4. cld80211-lib/
  5. qcwcn/