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

Commit e991c4c2 authored by Ryder Lee's avatar Ryder Lee Committed by Felix Fietkau
Browse files

mt76: mt7615: update peer's bssid when state transition occurs



This makes sure that the driver update peer's bssid when state
transition occurs.

Signed-off-by: default avatarRyder Lee <ryder.lee@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 1a09d9e0
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -283,9 +283,8 @@ static void mt7615_bss_info_changed(struct ieee80211_hw *hw,

	mutex_lock(&dev->mt76.mutex);

	/* TODO: sta mode connect/disconnect
	 * BSS_CHANGED_ASSOC | BSS_CHANGED_BSSID
	 */
	if (changed & BSS_CHANGED_ASSOC)
		mt7615_mcu_set_bss_info(dev, vif, info->assoc);

	/* TODO: update beacon content
	 * BSS_CHANGED_BEACON
+14 −13
Original line number Diff line number Diff line
@@ -759,11 +759,12 @@ int mt7615_mcu_set_bss_info(struct mt7615_dev *dev,
		conn_type = CONNECTION_INFRA_AP;
		break;
	case NL80211_IFTYPE_STATION: {
		/* TODO: enable BSS_INFO_UAPSD & BSS_INFO_PM */
		if (en) {
			struct ieee80211_sta *sta;
			struct mt7615_sta *msta;

			rcu_read_lock();

			sta = ieee80211_find_sta(vif, vif->bss_conf.bssid);
			if (!sta) {
				rcu_read_unlock();
@@ -772,9 +773,9 @@ int mt7615_mcu_set_bss_info(struct mt7615_dev *dev,

			msta = (struct mt7615_sta *)sta->drv_priv;
			tx_wlan_idx = msta->wcid.idx;
		conn_type = CONNECTION_INFRA_STA;

			rcu_read_unlock();
		}
		conn_type = CONNECTION_INFRA_STA;
		break;
	}
	default: