|
@@ -1925,7 +1925,6 @@ int hdd_regulatory_init(struct hdd_context *hdd_ctx, struct wiphy *wiphy)
|
|
|
{
|
|
|
bool offload_enabled;
|
|
|
struct regulatory_channel *cur_chan_list;
|
|
|
- uint8_t alpha2[REG_ALPHA2_LEN + 1];
|
|
|
int ret;
|
|
|
|
|
|
cur_chan_list = qdf_mem_malloc(sizeof(*cur_chan_list) * NUM_CHANNELS);
|
|
@@ -1967,7 +1966,7 @@ int hdd_regulatory_init(struct hdd_context *hdd_ctx, struct wiphy *wiphy)
|
|
|
fill_wiphy_band_channels(wiphy, cur_chan_list, NL80211_BAND_2GHZ);
|
|
|
fill_wiphy_band_channels(wiphy, cur_chan_list, NL80211_BAND_5GHZ);
|
|
|
fill_wiphy_6ghz_band_channels(wiphy, cur_chan_list);
|
|
|
- qdf_mem_copy(hdd_ctx->reg.alpha2, alpha2, REG_ALPHA2_LEN + 1);
|
|
|
+ qdf_mem_zero(hdd_ctx->reg.alpha2, REG_ALPHA2_LEN + 1);
|
|
|
|
|
|
qdf_mem_free(cur_chan_list);
|
|
|
return 0;
|