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:
Young-Ho Cha 2015-10-13 11:06:04 +09:00
parent ef4ee0e178
commit a3ed7190f9
1 changed files with 1 additions and 1 deletions

View File

@ -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;