1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-22 13:24:36 +00:00

Initialize some variables

This commit is contained in:
astsam 2017-06-25 09:51:07 +03:00
parent 8c6132a401
commit 9132e40ce6
2 changed files with 4 additions and 4 deletions

View File

@ -5246,7 +5246,7 @@ static void hw_var_set_mlme_sitesurvey(PADAPTER Adapter, u8 variable, u8* val)
u16 value_rxfltmap2;
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
struct mlme_priv *pmlmepriv=&(Adapter->mlmepriv);
u8 ap_num;
u8 ap_num = 0;
#ifdef DBG_IFACE_STATUS
DBG_IFACE_STATUS_DUMP(Adapter);

View File

@ -4273,8 +4273,8 @@ static int cfg80211_rtw_get_channel(struct wiphy *wiphy, struct wireless_dev *wd
int channel;
int control_freq;
int center_freq;
int center_freq2=0;
int width;
int center_freq2 = 0;
int width = NL80211_CHAN_WIDTH_20;
int band;
int bandWidth;
int offset;
@ -4286,7 +4286,7 @@ static int cfg80211_rtw_get_channel(struct wiphy *wiphy, struct wireless_dev *wd
return -ENODEV;
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){
switch(pHalData->CurrentBandType){