wifi: rename mode 'ON' to 'VOICE'.
To improve clarity and accommodate future functionalities,
we should rename the existing 'ON' mode to 'VOICE'.
This change establishes 'VOICE' as the fundamental mode for VOIP operations.
Additionally, it paves the way for adding future modes, such as 'VOICE_VIDEO',
as the system evolves.
Bug: 295885471
Test: TH
Change-Id: Ie3b54f02cf3c73b5a9c2a805ec36703dfd541666
diff --git a/qcwcn/wifi_hal/wificonfig.cpp b/qcwcn/wifi_hal/wificonfig.cpp
index 4b2a35f..9e1a6a0 100644
--- a/qcwcn/wifi_hal/wificonfig.cpp
+++ b/qcwcn/wifi_hal/wificonfig.cpp
@@ -1720,7 +1720,7 @@
}
if (wifiConfigCommand->put_u8(QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE,
- (mode==WIFI_VOIP_MODE_ON) ? 1 : 0)) {
+ (mode==WIFI_VOIP_MODE_VOICE) ? 1 : 0)) {
ALOGE("%s: failed to put vendor data", __FUNCTION__);
ret = WIFI_ERROR_UNKNOWN;
goto cleanup;