Skip to content

Commit 5599bc7

Browse files
authored
Merge pull request #3425 from DavidLin1577/patch-1
Fixed wrong output information
2 parents 234cd0e + 39538e0 commit 5599bc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/drivers/wlan/wlan_dev.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ rt_err_t rt_wlan_dev_connect(struct rt_wlan_device *device, struct rt_wlan_info
102102
if ((password_len > RT_WLAN_PASSWORD_MAX_LENGTH) ||
103103
(info->ssid.len > RT_WLAN_SSID_MAX_LENGTH))
104104
{
105-
LOG_E("L:%d password or ssid is to long", __LINE__);
105+
LOG_E("L:%d password or ssid is too long", __LINE__);
106106
return -RT_ERROR;
107107
}
108108
rt_memset(&sta_info, 0, sizeof(struct rt_sta_info));
@@ -150,7 +150,7 @@ rt_err_t rt_wlan_dev_ap_start(struct rt_wlan_device *device, struct rt_wlan_info
150150
if ((password_len > RT_WLAN_PASSWORD_MAX_LENGTH) ||
151151
(info->ssid.len > RT_WLAN_SSID_MAX_LENGTH))
152152
{
153-
LOG_E("L:%d password or ssid is to long", __LINE__);
153+
LOG_E("L:%d password or ssid is too long", __LINE__);
154154
return -RT_ERROR;
155155
}
156156

@@ -530,7 +530,7 @@ rt_err_t rt_wlan_dev_scan(struct rt_wlan_device *device, struct rt_wlan_info *in
530530
{
531531
if (info->ssid.len > RT_WLAN_SSID_MAX_LENGTH)
532532
{
533-
LOG_E("L:%d ssid is to long", __LINE__);
533+
LOG_E("L:%d ssid is too long", __LINE__);
534534
return -RT_EINVAL;
535535
}
536536
rt_memcpy(&scan_info.ssid, &info->ssid, sizeof(rt_wlan_ssid_t));

0 commit comments

Comments
 (0)