flo: conn_init: fix load macaddr
fread returns number of blocks not byte. So cannot read mac address correctly in previous code. Change-Id: Idbbcb1bbbda8af30ec4554cd4bbec90515547759 Signed-off-by: Young-Ho Cha <ganadist@gmail.com>
This commit is contained in:
parent
ef4ee0e178
commit
a3ed7190f9
|
@ -39,7 +39,7 @@ static int wifi_check_qcom_cfg_files()
|
|||
{
|
||||
int n = fread(macAddress, 12, 1, fp);
|
||||
fclose(fp);
|
||||
if (n != 12) {
|
||||
if (n != 1) {
|
||||
memset(macAddress, 0, 13);
|
||||
wfc_util_qcom_check_config((unsigned char *)macAddress);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue