]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
carl9170: fix missing bit-wise or operator for tx_params
authorColin Ian King <colin.i.king@gmail.com>
Tue, 25 Jan 2022 00:44:06 +0000 (00:44 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:56:45 +0000 (11:56 +0200)
commit9212e9c01b9813b68f19c9255d7afdf58d785619
treef952ca953f2156574292b456e8a233512a8fad80
parent14e2fa1d8adff71fc81792df198c5624d2916035
carl9170: fix missing bit-wise or operator for tx_params

BugLink: https://bugs.launchpad.net/bugs/1969110
commit 02a95374b5eebdbd3b6413fd7ddec151d2ea75a1 upstream.

Currently tx_params is being re-assigned with a new value and the
previous setting IEEE80211_HT_MCS_TX_RX_DIFF is being overwritten.
The assignment operator is incorrect, the original intent was to
bit-wise or the value in. Fix this by replacing the = operator
with |= instead.

Kudos to Christian Lamparter for suggesting the correct fix.

Fixes: fe8ee9ad80b2 ("carl9170: mac80211 glue and command interface")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Cc: <Stable@vger.kernel.org>
Acked-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220125004406.344422-1-colin.i.king@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 10a15d91bcbae44ff816ae9a715bfca932734317)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/wireless/ath/carl9170/main.c