diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c index 8554622b28a9..9fbba15d06d8 100644 --- a/core/hdd/src/wlan_hdd_cfg.c +++ b/core/hdd/src/wlan_hdd_cfg.c @@ -5828,7 +5828,7 @@ QDF_STATUS hdd_update_mac_config(hdd_context_t *pHddCtx) } buffer = temp; qdf_mem_copy(buffer, fw->data, fw->size); - buffer[fw->size + 1] = 0x0; + buffer[fw->size] = 0x0; /* data format: * Intf0MacAddress=00AA00BB00CC