From 72117bc4560672b67674e6eb8962a4d54c7ad656 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Mon, 27 Aug 2018 20:31:00 +0200 Subject: [PATCH] Initialize some variables --- os_dep/linux/ioctl_cfg80211.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index cdb677b..7701150 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -5528,7 +5528,7 @@ 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 center_freq2 = 0; int width; int band; int bandWidth; @@ -5539,7 +5539,7 @@ static int cfg80211_rtw_get_channel(struct wiphy *wiphy, struct wireless_dev *wd if (!ndev) 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: