summaryrefslogtreecommitdiff
path: root/wifi/1.3/default/wifi_iface_util.cpp
AgeCommit message (Collapse)Author
2019-09-19Wifi: Uprev Wifi HAL to 1.4Ahmed ElArabawy
Move Wifi HAL from 1.3 to 1.4 This commit also include adding the VINTF fragment definition for IWifi hal. Bug: 138243400 Test: Builds and wifi works Change-Id: I5ec9b21f8d6b7e1b5b5e47e26681dd4ed3ffcc2d
2019-05-22wifi(tests): Unit tests for iface event cb'sRoshan Pius
Few class refactors to help with unit tests for ag/7567226. Bug: 132943959 Test: ./hardware/interfaces/wifi/1.3/default/tests/runtests.sh Change-Id: I62909f3f94899bc1593824684b93d29f44954eae
2019-05-22wifi(implementation): Send NAN disabled on wlan0 down & upRoshan Pius
When the iface state is toggled for MAC address change on the underlying interface for NAN operations, send NAN disabled event up to the framework. The iface down/up toggle resets all NAN operations in the firmware. So, this callback should trigger a cleanup of any operations initiated by the framework. Bug: 132943959 Test: Unit tests in the follow-up CL. Test: Will send for regression tests. Change-Id: I760dc5ca3b9276956f5edd40a97c3c13811f442c
2019-02-26wifi(implementation): Generate randomized mac addressRoshan Pius
Generate random MAC address on the first creation of AP iface after reboot. Bug: 78353419 Test: ./hardware/interfaces/wifi/1.3/default/tests/runtests.sh Test: Manually verified that the AP MAC address & BSSID changes on every reboot. Change-Id: Ie9984ec72b2dfec9b7de7a9ef33b9e9ebfaf945c
2019-02-26wifi(implementation): Set randomized MAC address for APRoshan Pius
Add the plumbing required for setting a random MAC address on AP startup. The random MAC address is created once for the lifetime of the daemon and then reused for any further AP creation. This would ensure that the MAC address is changed on every reboot. The feature is turned on by default, devices will need to set the |WIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION| in their .mk file to disable the feature at compile time. Bug: 78353419 Test: ./hardware/interfaces/wifi/1.3/default/tests/runtests.sh Change-Id: I054d5249c20cc582b76966313135295873cd0b61
2019-02-26wifi(implementation): Move set/getMacaddress to a util classRoshan Pius
This is just a refactor to move the setMacAddress & getFactoryMacAddress methods to a util class within the HAL. This can be then reused in AP iface for mac randomization of SoftAp. This also fixes a bug in the existing setMacAddress() method, the current method always sets wlan0 up/down. STA interface could be wlan1 on some devices. Bug: 78353419 Test: ./hardware/interfaces/wifi/1.3/default/tests/runtests.sh Test: Manually verified STA MAC randomization still works. Change-Id: I0bb8154f7e6dcae37c977454423c8c299762260e