Deren Wu
46d13013b5
wifi: mt76: mt7921: do not support one stream on secondary antenna only
...
commit d616d3680264beb9a9d2c4fc681064b06f447eeb upstream.
mt7921 support following antenna combiantions only.
* primary + secondary (2x2)
* primary only (1x1)
Since we cannot work on secondary antenna only, return error if the
antenna bitmap is 0x2 in .set_antenna().
For example:
iw phy0 set antenna 3 3 /* valid */
iw phy0 set antenna 1 1 /* valid */
iw phy0 set antenna 2 2 /* invalid */
Cc: stable@vger.kernel.org
Fixes: e0f9fdda81bd ("mt76: mt7921: add ieee80211_ops")
Suggested-by: Knox Chiou <knoxchiou@google.com>
Signed-off-by: Deren Wu <deren.wu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-06 21:28:39 +01:00
..
2022-12-02 17:41:07 +01:00
2023-08-30 16:18:15 +02:00
2023-08-30 16:18:14 +02:00
2023-08-26 14:23:35 +02:00
2023-09-06 21:28:37 +01:00
2022-12-31 13:14:18 +01:00
2022-12-31 13:14:41 +01:00
2023-03-10 09:39:51 +01:00
2023-06-28 10:29:45 +02:00
2023-04-05 11:24:57 +02:00
2023-08-30 16:18:14 +02:00
2023-05-24 17:36:41 +01:00
2023-07-23 13:47:45 +02:00
2023-05-11 23:00:26 +09:00
2023-08-26 14:23:34 +02:00
2022-12-14 11:37:29 +01:00
2023-07-23 13:47:30 +02:00
2023-08-26 14:23:34 +02:00
2023-08-11 15:13:58 +02:00
2023-01-12 11:59:09 +01:00
2023-08-03 10:22:34 +02:00
2023-06-21 15:59:18 +02:00
2023-08-16 18:21:57 +02:00
2023-09-06 21:28:39 +01:00
2022-12-08 11:28:41 +01:00
2023-08-08 19:58:35 +02:00
2023-07-23 13:46:55 +02:00
2022-12-21 17:36:38 +01:00
2023-08-26 14:23:21 +02:00
2022-11-26 09:24:50 +01:00
2023-08-03 10:22:34 +02:00
2022-11-26 09:24:40 +01:00
2023-04-05 11:24:55 +02:00
2022-12-31 13:14:20 +01:00
2023-08-11 15:13:57 +02:00
2022-12-14 11:37:30 +01:00
2023-08-16 18:22:01 +02:00
2023-08-30 16:18:14 +02:00
2023-08-26 14:23:38 +02:00
2022-12-14 11:37:26 +01:00