diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/wifi_hdi_wpa_client.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/wifi_hdi_wpa_client.cpp index 457863c11e7c5ca4d7b98f97bdf51c58ad173317..4854b3c5b99dbf6858d7eb39edb0134b53135fa3 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/wifi_hdi_wpa_client.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/wifi_hdi_wpa_client.cpp @@ -767,7 +767,7 @@ bool WifiHdiWpaClient::WriteConfigToFile(const std::string &fileContext) } file << fileContext << std::endl; file.close(); - if (chmod(destPath.c_str(), S_IRUSR | S_IWUSR | S_IRGRP) != 0) { + if (chmod(destPath.c_str(), S_IRUSR | S_IWUSR) != 0) { LOGE("Set file permissions failed: %s", strerror(errno)); return false; }