|
@@ -8030,7 +8030,7 @@ static int rtw_scan_ch_decision(struct adapter *padapter, struct rtw_ieee80211_c
|
|
set_idx = rtw_ch_set_search_ch(pmlmeext->channel_set, in[i].hw_value);
|
|
set_idx = rtw_ch_set_search_ch(pmlmeext->channel_set, in[i].hw_value);
|
|
if (in[i].hw_value && !(in[i].flags & RTW_IEEE80211_CHAN_DISABLED) &&
|
|
if (in[i].hw_value && !(in[i].flags & RTW_IEEE80211_CHAN_DISABLED) &&
|
|
set_idx >= 0) {
|
|
set_idx >= 0) {
|
|
- memcpy(&out[j], &in[i], sizeof(struct rtw_ieee80211_channel));
|
|
|
|
|
|
+ out[j] = in[i];
|
|
|
|
|
|
if (pmlmeext->channel_set[set_idx].ScanType == SCAN_PASSIVE)
|
|
if (pmlmeext->channel_set[set_idx].ScanType == SCAN_PASSIVE)
|
|
out[j].flags &= RTW_IEEE80211_CHAN_PASSIVE_SCAN;
|
|
out[j].flags &= RTW_IEEE80211_CHAN_PASSIVE_SCAN;
|