diff --git a/core/hdd/src/wlan_hdd_station_info.c b/core/hdd/src/wlan_hdd_station_info.c index db1ac1abad56..eb1710c61676 100644 --- a/core/hdd/src/wlan_hdd_station_info.c +++ b/core/hdd/src/wlan_hdd_station_info.c @@ -591,6 +591,10 @@ static int32_t hdd_add_he_oper_info( { int32_t ret = 0; + if (!hdd_sta_ctx->cache_conn_info.he_oper_len || + !hdd_sta_ctx->cache_conn_info.he_operation) + return ret; + if (nla_put(skb, HE_OPERATION, hdd_sta_ctx->cache_conn_info.he_oper_len, hdd_sta_ctx->cache_conn_info.he_operation))