mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Do not check for center frequency seg2 in 160MHz
Do not check for center frequency segment 2 with 160MHz bandwidth in set channel as hostapd does not set it for 160MHz mode. Change-Id: I43a7a30b5f6e1c5916ddc2c72e18b82fc6814b06 CRs-Fixed: 2545967
This commit is contained in:
parent
0158814ea9
commit
fae3181e4a
1 changed files with 4 additions and 4 deletions
|
|
@ -3670,9 +3670,10 @@ int wlan_hdd_set_channel(struct wiphy *wiphy,
|
|||
TRACE_CODE_HDD_CFG80211_SET_CHANNEL,
|
||||
adapter->vdev_id, channel_type);
|
||||
|
||||
hdd_debug("Device_mode %s(%d) freq = %d",
|
||||
hdd_debug("Dev_mode %s(%d) freq %d, ch_bw %d ccfs1 %d ccfs2 %d",
|
||||
qdf_opmode_str(adapter->device_mode),
|
||||
adapter->device_mode, chandef->chan->center_freq);
|
||||
adapter->device_mode, chandef->chan->center_freq,
|
||||
chandef->width, chandef->center_freq1, chandef->center_freq2);
|
||||
|
||||
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
||||
status = wlan_hdd_validate_context(hdd_ctx);
|
||||
|
|
@ -3692,8 +3693,7 @@ int wlan_hdd_set_channel(struct wiphy *wiphy,
|
|||
|
||||
channel = ieee80211_frequency_to_channel(chandef->chan->center_freq);
|
||||
|
||||
if (NL80211_CHAN_WIDTH_80P80 == chandef->width ||
|
||||
NL80211_CHAN_WIDTH_160 == chandef->width) {
|
||||
if (NL80211_CHAN_WIDTH_80P80 == chandef->width) {
|
||||
if ((wlan_reg_min_chan_freq() > chandef->center_freq2) ||
|
||||
(wlan_reg_max_chan_freq() < chandef->center_freq2)) {
|
||||
hdd_err("center_freq2: %d is outside valid freq range",
|
||||
|
|
|
|||
Loading…
Reference in a new issue