wifi: remove wifi instance name string check
When wifi instance name is empty, HAL should still be started normally. Bug: 161951052 Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \ VtsHalWifiV1_1TargetTest \ VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \ VtsHalWifiV1_3TargetTest \ VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest Change-Id: I2d848501ba3e7d4128b07d8ac858e5ebd31c6452
This commit is contained in:
parent
67d3db83a9
commit
1c50a59eae
1 changed files with 0 additions and 8 deletions
|
@ -52,10 +52,6 @@ namespace {
|
|||
// Helper function to initialize the driver and firmware to STA mode
|
||||
// using the vendor HAL HIDL interface.
|
||||
void initilializeDriverAndFirmware(const std::string& wifi_instance_name) {
|
||||
// Skip if wifi instance is not set.
|
||||
if (wifi_instance_name == "") {
|
||||
return;
|
||||
}
|
||||
if (getWifi(wifi_instance_name) != nullptr) {
|
||||
sp<IWifiChip> wifi_chip = getWifiChip(wifi_instance_name);
|
||||
ChipModeId mode_id;
|
||||
|
@ -69,10 +65,6 @@ void initilializeDriverAndFirmware(const std::string& wifi_instance_name) {
|
|||
// Helper function to deinitialize the driver and firmware
|
||||
// using the vendor HAL HIDL interface.
|
||||
void deInitilializeDriverAndFirmware(const std::string& wifi_instance_name) {
|
||||
// Skip if wifi instance is not set.
|
||||
if (wifi_instance_name == "") {
|
||||
return;
|
||||
}
|
||||
if (getWifi(wifi_instance_name) != nullptr) {
|
||||
stopWifi(wifi_instance_name);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue