mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacld-3.0: Change 6 ghz channel frequencies
Add orphan channel with center frequency 5935 to 6ghz channels. Also shift center frequency of other channels by 10 mhz. Also change the maximum possible frequency of 5 ghz channels. Change-Id: Ic86fb8ded10b32871a9edf532bbc4e0889efb543 CRs-Fixed: 2686624
This commit is contained in:
parent
3c8333a753
commit
ea151c9219
2 changed files with 9 additions and 3 deletions
|
|
@ -412,10 +412,16 @@ static void hdd_init_6ghz(struct hdd_context *hdd_ctx)
|
|||
struct wiphy *wiphy = hdd_ctx->wiphy;
|
||||
struct ieee80211_channel *chlist = hdd_channels_6_ghz;
|
||||
uint32_t num = ARRAY_SIZE(hdd_channels_6_ghz);
|
||||
uint16_t base_freq;
|
||||
|
||||
qdf_mem_zero(chlist, sizeof(*chlist) * num);
|
||||
base_freq = wlan_reg_min_6ghz_chan_freq();
|
||||
|
||||
for (i = 0; i < num; i++)
|
||||
HDD_SET_6GHZCHAN(chlist[i], 5945 + i * 20, 1 + i * 4, \
|
||||
HDD_SET_6GHZCHAN(chlist[i],
|
||||
base_freq + i * 20,
|
||||
wlan_reg_freq_to_chan(hdd_ctx->pdev,
|
||||
base_freq + i * 20),
|
||||
IEEE80211_CHAN_DISABLED);
|
||||
wiphy->bands[HDD_NL80211_BAND_6GHZ] = &wlan_hdd_band_6_ghz;
|
||||
wiphy->bands[HDD_NL80211_BAND_6GHZ]->channels = chlist;
|
||||
|
|
|
|||
|
|
@ -34,10 +34,10 @@
|
|||
#ifdef CONFIG_BAND_6GHZ
|
||||
#define HIGH_5GHZ_FREQ 7200
|
||||
#else
|
||||
#define HIGH_5GHZ_FREQ 5930
|
||||
#define HIGH_5GHZ_FREQ 5920
|
||||
#endif
|
||||
|
||||
#define HIGH_5GHZ_FREQ_NO_6GHZ 5930
|
||||
#define HIGH_5GHZ_FREQ_NO_6GHZ 5920
|
||||
|
||||
static void hdd_init_pdev_os_priv(struct hdd_context *hdd_ctx,
|
||||
struct pdev_osif_priv *os_priv)
|
||||
|
|
|
|||
Loading…
Reference in a new issue