1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-30 00:47:38 +00:00

Initialize some variables

This commit is contained in:
kimocoder 2018-08-27 20:31:00 +02:00
parent 5f1fd4fa3c
commit 72117bc456

View File

@ -5528,7 +5528,7 @@ static int cfg80211_rtw_get_channel(struct wiphy *wiphy, struct wireless_dev *wd
int channel; int channel;
int control_freq; int control_freq;
int center_freq; int center_freq;
int center_freq2=0; int center_freq2 = 0;
int width; int width;
int band; int band;
int bandWidth; int bandWidth;
@ -5539,7 +5539,7 @@ static int cfg80211_rtw_get_channel(struct wiphy *wiphy, struct wireless_dev *wd
if (!ndev) if (!ndev)
return -ENODEV; return -ENODEV;
offset = rtw_get_oper_choffset(padapter); offset = rtw_get_oper_choffset(padapter);
channel = adapter_to_dvobj(padapter)->oper_channel; center_freq = channel = adapter_to_dvobj(padapter)->oper_channel;
if (channel >= 1) { if (channel >= 1) {
switch (pHalData->current_band_type) { switch (pHalData->current_band_type) {
case 0: case 0: