Skip to content

Commit

Permalink
qtnfmac: set valid edmg in cfg80211_chan_def
Browse files Browse the repository at this point in the history
Make sure that edmg field of cfg80211_chan_def structure is properly
initialized by zeros. Otherwise cfg80211_chandef_valid may return
false if edmg fields contain some garbage.

Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  • Loading branch information
Sergey Matyukevich authored and Kalle Valo committed Mar 12, 2020
1 parent 44d0976 commit c3d476d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/quantenna/qtnfmac/qlink_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ void qlink_chandef_q2cfg(struct wiphy *wiphy,
chdef->center_freq1 = le16_to_cpu(qch->center_freq1);
chdef->center_freq2 = le16_to_cpu(qch->center_freq2);
chdef->width = qlink_chanwidth_to_nl(qch->width);
chdef->edmg.bw_config = 0;
chdef->edmg.channels = 0;
}

void qlink_chandef_cfg2q(const struct cfg80211_chan_def *chdef,
Expand Down

0 comments on commit c3d476d

Please sign in to comment.