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

Commit 8a35beec authored by Lior David's avatar Lior David Committed by Maya Erez
Browse files

wil6210: report association ID (AID) per station in debugfs



Add reporting of the association ID (AID) for each station
as part of the stations file in the debugfs.
Valid AID values are 1-254. 0 is reported if the AID
is unknown or not reported by firmware.

Change-Id: Ifa79ccfa91d60eb0aeada0c849f8694d27c3b333
Signed-off-by: default avatarLior David <qca_liord@qca.qualcomm.com>
Signed-off-by: default avatarMaya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 9d865ee232eccf51950b16f223f4130f7dc06e0f
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git


Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
parent fde90189
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1385,6 +1385,7 @@ __acquires(&p->tid_rx_lock) __releases(&p->tid_rx_lock)
	for (i = 0; i < ARRAY_SIZE(wil->sta); i++) {
		struct wil_sta_info *p = &wil->sta[i];
		char *status = "unknown";
		u8 aid = 0;

		switch (p->status) {
		case wil_sta_unused:
@@ -1395,9 +1396,10 @@ __acquires(&p->tid_rx_lock) __releases(&p->tid_rx_lock)
			break;
		case wil_sta_connected:
			status = "connected";
			aid = p->aid;
			break;
		}
		seq_printf(s, "[%d] %pM %s\n", i, p->addr, status);
		seq_printf(s, "[%d] %pM %s AID %d\n", i, p->addr, status, aid);

		if (p->status == wil_sta_connected) {
			spin_lock_bh(&p->tid_rx_lock);
+1 −0
Original line number Diff line number Diff line
@@ -528,6 +528,7 @@ struct wil_sta_info {
	unsigned long tid_rx_stop_requested[BITS_TO_LONGS(WIL_STA_TID_NUM)];
	struct wil_tid_crypto_rx tid_crypto_rx[WIL_STA_TID_NUM];
	struct wil_tid_crypto_rx group_crypto_rx;
	u8 aid; /* 1-254; 0 if unknown/not reported */
};

enum {
+3 −2
Original line number Diff line number Diff line
@@ -495,8 +495,8 @@ static void wmi_evt_connect(struct wil6210_priv *wil, int id, void *d, int len)
	}

	ch = evt->channel + 1;
	wil_info(wil, "Connect %pM channel [%d] cid %d\n",
		 evt->bssid, ch, evt->cid);
	wil_info(wil, "Connect %pM channel [%d] cid %d aid %d\n",
		 evt->bssid, ch, evt->cid, evt->aid);
	wil_hex_dump_wmi("connect AI : ", DUMP_PREFIX_OFFSET, 16, 1,
			 evt->assoc_info, len - sizeof(*evt), true);

@@ -605,6 +605,7 @@ static void wmi_evt_connect(struct wil6210_priv *wil, int id, void *d, int len)
	}

	wil->sta[evt->cid].status = wil_sta_connected;
	wil->sta[evt->cid].aid = evt->aid;
	set_bit(wil_status_fwconnected, wil->status);
	wil_update_net_queues_bh(wil, NULL, false);