mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
wifi: mt76: Check link_conf pointer in mt76_connac_mcu_sta_basic_tlv()
This is a preliminary patch to introduce MLO support for MT7996 driver. Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> Link: https://patch.msgid.link/20250311-mt7996-mlo-v2-10-31df6972519b@kernel.org Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
ecd72f9695
commit
9890624c1b
|
|
@ -391,7 +391,7 @@ void mt76_connac_mcu_sta_basic_tlv(struct mt76_dev *dev, struct sk_buff *skb,
|
|||
basic->conn_type = cpu_to_le32(CONNECTION_INFRA_BC);
|
||||
|
||||
if (vif->type == NL80211_IFTYPE_STATION &&
|
||||
!is_zero_ether_addr(link_conf->bssid)) {
|
||||
link_conf && !is_zero_ether_addr(link_conf->bssid)) {
|
||||
memcpy(basic->peer_addr, link_conf->bssid, ETH_ALEN);
|
||||
basic->aid = cpu_to_le16(vif->cfg.aid);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user