mirror of
https://github.com/apache/nuttx.git
synced 2026-06-09 02:44:53 +08:00
wireless/bcm43xxx: country code should terminating with null
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
@@ -1807,6 +1807,7 @@ int bcmf_wl_get_country(FAR struct bcmf_dev_s *priv, FAR struct iwreq *iwr)
|
||||
if (ret == OK)
|
||||
{
|
||||
memcpy(iwr->u.data.pointer, country, 2);
|
||||
((uint8_t *)iwr->u.data.pointer)[2] = '\0';
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user