qcacmn: Parse and update qdf module params
Read the file wifi_module_param.ini, in which wifi module params are present and compare these module params with qdf module params in qdf module init function. If any of the module params belongs to qdf module is present, then that particular module param is updted during qdf module init. Change-Id: I76ef876f6c7be3cdffd93b6050a190438d60bf39
This commit is contained in:

committed by
Madan Koyyalamudi

parent
8159fecc91
commit
c2c89243d8
@@ -32,7 +32,10 @@ QDF_STATUS qdf_ini_parse(const char *ini_path, void *context,
|
||||
char *cursor;
|
||||
int ini_read_count = 0;
|
||||
|
||||
status = qdf_file_read(ini_path, &fbuf);
|
||||
if (qdf_str_eq(QDF_WIFI_MODULE_PARAMS_FILE, ini_path))
|
||||
status = qdf_module_param_file_read(ini_path, &fbuf);
|
||||
else
|
||||
status = qdf_file_read(ini_path, &fbuf);
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
qdf_err("Failed to read *.ini file @ %s", ini_path);
|
||||
return status;
|
||||
@@ -132,7 +135,10 @@ QDF_STATUS qdf_ini_parse(const char *ini_path, void *context,
|
||||
}
|
||||
|
||||
free_fbuf:
|
||||
qdf_file_buf_free(fbuf);
|
||||
if (qdf_str_eq(QDF_WIFI_MODULE_PARAMS_FILE, ini_path))
|
||||
qdf_module_param_file_free(fbuf);
|
||||
else
|
||||
qdf_file_buf_free(fbuf);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
Reference in New Issue
Block a user