From b39cd0827cd20bad2b17636ae181fd0289a750c5 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sun, 5 Aug 2018 20:31:51 +0200 Subject: [PATCH] Initialize some variables --- os_dep/linux/ioctl_cfg80211.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 156aa2c..461f7b9 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -4816,8 +4816,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; @@ -4829,7 +4829,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->current_band_type) { case 0: