You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/07/02 06:13:25 UTC

[incubator-nuttx] branch master updated: wireless/bcm43xxx: country code should terminating with null

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/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new bd713d6431 wireless/bcm43xxx: country code should terminating with null
bd713d6431 is described below

commit bd713d643123465b408f5325aba9680c2c6547f1
Author: chao.an <an...@xiaomi.com>
AuthorDate: Fri Jun 24 19:04:54 2022 +0800

    wireless/bcm43xxx: country code should terminating with null
    
    Signed-off-by: chao.an <an...@xiaomi.com>
---
 drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c
index ff00717a92..e92393d3c8 100644
--- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c
+++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c
@@ -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;