Re: [PATCH v2 08/12] mesh: fix DFS deinit/init

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

 




diff --git a/src/ap/dfs.c b/src/ap/dfs.c
index 2c914baa2..25dad3482 100644
--- a/src/ap/dfs.c
+++ b/src/ap/dfs.c
@@ -1112,7 +1112,7 @@ static int hostapd_dfs_start_channel_switch(struct hostapd_iface *iface)
  				      oper_centr_freq_seg0_idx,
  				      oper_centr_freq_seg1_idx,
  				      cmode->vht_capab,
-				      &cmode->he_capab[IEEE80211_MODE_AP]);
+				      &cmode->he_capab[iface->conf->hw_mode]);

iface->conf->hw_mode is not a compatible replacement.

I'm using this for my own, since only AP and Mesh do CSA at this moment,
but not sure if people like it.

int ieee80211_mode = IEEE80211_MODE_AP;
	
#ifdef CONFIG_MESH
	if (iface->mconf)
		ieee80211_mode = IEEE80211_MODE_MESH;
#endif /* CONFIG_MESH */

&cmode->he_capab[ieee80211_mode]);

Thanks,
Peter


_______________________________________________
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