Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5820f3f authored by Ramanasarvesh Sadula's avatar Ramanasarvesh Sadula Committed by Dundi Raviteja
Browse files

wlan: Migrate to 4.14 kernel to store center frequency

Use corresponding variable names of 4.14 kernel to store
center frequency segment idx in vht ops.

Change-Id: Ia51a0def02a63d30ea6158d24d1bd9a5e5da00f5
CRs-Fixed: 2696771
parent 89c2e5a7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -800,8 +800,13 @@ static void hdd_copy_vht_operation(hdd_station_ctx_t *hdd_sta_ctx,
    vos_mem_zero(hdd_vht_ops, sizeof(struct ieee80211_vht_operation));

    hdd_vht_ops->chan_width = roam_vht_ops->chanWidth;
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
    hdd_vht_ops->center_freq_seg0_idx = roam_vht_ops->chanCenterFreqSeg1;
    hdd_vht_ops->center_freq_seg1_idx = roam_vht_ops->chanCenterFreqSeg2;
#else
    hdd_vht_ops->center_freq_seg1_idx = roam_vht_ops->chanCenterFreqSeg1;
    hdd_vht_ops->center_freq_seg2_idx = roam_vht_ops->chanCenterFreqSeg2;
#endif
    hdd_vht_ops->basic_mcs_set = roam_vht_ops->basicMCSSet;
}