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:
parent
8c6132a401
commit
9132e40ce6
@ -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);
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user