wifisim: Open the bss file with O_RDONLY.

Signed-off-by: liqinhui <liqinhui@xiaomi.com>
This commit is contained in:
liqinhui 2023-12-20 17:03:59 +08:00 committed by Xiang Xiao
parent 47b2e00d51
commit 06c1db81ff

View file

@ -474,7 +474,7 @@ static int read_bss_config(FAR char *buf, size_t len, FAR char *path)
struct file filep;
int ret;
ret = file_open(&filep, path, O_RDWR);
ret = file_open(&filep, path, O_RDONLY);
if (ret < 0)
{
nerr("open error");