Other Parts Discussed in Thread: UNIFLASH, CC3100
Hi,
SDK version: 1.2.0
servicepack version: 1.0.1.6-2.6.0.5
ENT_SEC_METHOD_: SL_ENT_EAP_METHOD_FAST_UNAUTH_PROVISIONING
I tried to use CC3100MOD to connect to AP through EAP-FAST-MSCHAPv2 including phase 0 auto-provisioning support.
At the beginning, I check the serial flash of CC3100MOD and make sure there is no file(/tmp/pac.bin) in the flash by CCS UniFlash(v3.4.1)
The file(/tmp/pac.bin) appeared in the flash after I succeed connecting to AP.
I thought that is the protected access credential(PAC) generated in phase 0 of EAP-FAST.
The PROBLEM is:
1. If I changed the username of (SlSecParamsExt_t eapParams) which is also legal in the user list of Radius Server. I failed to connect to AP.
And the Error message is MSCHAP username does not match inner method EAP-Response/Identity.
2. Therefore, I tried to use the File System API:
sl_FsDel((_u8 *)"/tmp/pac.bin", NULL) to delete the file(/tmp/pac.bin) in the flash. But it always return SL_FS_ERR_TOKEN_IS_NOT_VALID(-50).
3. If I used the api:
sl_FsOpen((_u8 *)"/tmp/pac.bin", FS_MODE_OPEN_CREATE( 4096, _FS_FILE_OPEN_FLAG_COMMIT|_FS_FILE_PUBLIC_WRITE ), NULL, &fileHandle )
to create the file first before connected to AP. Then, I did have the right to modify this file. But if I made this file create by CC3100MOD itself,
I could not modify the file at all. If always return SL_FS_ERR_TOKEN_IS_NOT_VALID(-50).