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

Commit 9a3d025b authored by Sujith Manoharan's avatar Sujith Manoharan Committed by John W. Linville
Browse files

ath9k_htc: Make sequence number calculation per-VIF

parent 585895cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -208,6 +208,7 @@ struct ath9k_htc_target_stats {

struct ath9k_htc_vif {
	u8 index;
	u16 seq_no;
};

struct ath9k_vif_iter_data {
@@ -372,7 +373,6 @@ struct ath9k_htc_priv {
	u16 txpowlimit;
	u16 nvifs;
	u16 nstations;
	u16 seq_no;
	u32 bmiss_cnt;
	bool rearm_ani;
	bool reconfig_beacon;
+2 −2
Original line number Diff line number Diff line
@@ -207,9 +207,9 @@ void ath9k_htc_swba(struct ath9k_htc_priv *priv, u8 beacon_pending)
	if (info->flags & IEEE80211_TX_CTL_ASSIGN_SEQ) {
		struct ieee80211_hdr *hdr =
			(struct ieee80211_hdr *) beacon->data;
		priv->seq_no += 0x10;
		avp->seq_no += 0x10;
		hdr->seq_ctrl &= cpu_to_le16(IEEE80211_SCTL_FRAG);
		hdr->seq_ctrl |= cpu_to_le16(priv->seq_no);
		hdr->seq_ctrl |= cpu_to_le16(avp->seq_no);
	}

	tx_ctl.type = ATH9K_HTC_NORMAL;