[PATCH] Remove duplicated center_freq init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Eduardo Abinader <eabinader@xxxxxxxxx>

As the center freq values are adjusted in a proper
function, dfs_adjust_vht_center_freq, just ensure
there is no duplicated code for that.

Signed-off-by: Eduardo Abinader <eabinader@xxxxxxxxx>
---
 src/ap/dfs.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/ap/dfs.c b/src/ap/dfs.c
index 7273caa..43f1764 100644
--- a/src/ap/dfs.c
+++ b/src/ap/dfs.c
@@ -434,8 +434,6 @@ dfs_get_valid_channel(struct hostapd_iface *iface,
 
 	wpa_printf(MSG_DEBUG, "DFS: Selecting random channel");
 	*secondary_channel = 0;
-	*vht_oper_centr_freq_seg0_idx = 0;
-	*vht_oper_centr_freq_seg1_idx = 0;
 
 	if (iface->current_mode == NULL)
 		return NULL;
-- 
2.5.0


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux