This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 06c1db81ff4d5f2b64d3b4d19a8a58a88fa5589f Author: liqinhui <[email protected]> AuthorDate: Wed Dec 20 17:03:59 2023 +0800 wifisim: Open the bss file with O_RDONLY. Signed-off-by: liqinhui <[email protected]> --- drivers/net/wifi_sim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wifi_sim.c b/drivers/net/wifi_sim.c index 752eebb8cd..630771da95 100644 --- a/drivers/net/wifi_sim.c +++ b/drivers/net/wifi_sim.c @@ -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");
