In PDK build, it uses default wifi hal instead wifi_ext hal. Need to add rules for hal_wifi_default as well as we added for hal_wifi_ext Bug: 253544307 Test: Wifi can be enabled in PDK builds Change-Id: I57ad330c2467ae99b9c5190fbdc2f02e998b2fc1
20 lines
920 B
Plaintext
20 lines
920 B
Plaintext
allow hal_wifi_default vendor_wlan_device:chr_file w_file_perms;
|
|
allow hal_wifi_default vendor_wifi_vendor_data_file:dir rw_dir_perms;
|
|
|
|
# write to files owned by location daemon
|
|
allow hal_wifi_default vendor_location_socket:dir rw_dir_perms;
|
|
allow hal_wifi_default vendor_location_socket:{sock_file lnk_file} create_file_perms;
|
|
allow hal_wifi_default vendor_location:unix_dgram_socket sendto;
|
|
allow hal_wifi_default lowi_server:unix_dgram_socket sendto;
|
|
|
|
# Connect to vendor_location via vendor_location socket.
|
|
unix_socket_connect(hal_wifi, vendor_location, vendor_location)
|
|
allow hal_wifi_default vendor_wifihal_socket:dir rw_dir_perms;
|
|
allow hal_wifi_default vendor_wifihal_socket:sock_file create_file_perms;
|
|
|
|
# allow hal_wifi to write into /proc/debugdriver/driverdump
|
|
r_dir_file(hal_wifi_default, vendor_proc_wifi_dbg);
|
|
|
|
# Write wlan driver/fw version into property
|
|
set_prop(hal_wifi_default, vendor_wifi_version)
|