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

Commit 6bfe61d6 authored by Igor Mitsyanko's avatar Igor Mitsyanko Committed by Kalle Valo
Browse files

qtnfmac: remove unused mac::status field



There are no users of this field and it can safely be removed.

Signed-off-by: default avatarIgor Mitsyanko <igor.mitsyanko.os@quantenna.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 97397633
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2337,7 +2337,6 @@ int qtnf_cmd_send_chan_switch(struct qtnf_vif *vif,

	switch (res_code) {
	case QLINK_CMD_RESULT_OK:
		mac->status |= QTNF_MAC_CSA_ACTIVE;
		ret = 0;
		break;
	case QLINK_CMD_RESULT_ENOTFOUND:
+0 −5
Original line number Diff line number Diff line
@@ -89,10 +89,6 @@ enum qtnf_sta_state {
	QTNF_STA_CONNECTED
};

enum qtnf_mac_status {
	QTNF_MAC_CSA_ACTIVE	= BIT(0)
};

struct qtnf_vif {
	struct wireless_dev wdev;
	u8 vifid;
@@ -141,7 +137,6 @@ struct qtnf_wmac {
	u8 macid;
	u8 wiphy_registered;
	u8 macaddr[ETH_ALEN];
	u32 status;
	struct qtnf_bus *bus;
	struct qtnf_mac_info macinfo;
	struct qtnf_vif iflist[QTNF_MAX_INTF];
+0 −2
Original line number Diff line number Diff line
@@ -381,8 +381,6 @@ qtnf_event_handle_freq_change(struct qtnf_wmac *mac,
		 mac->macid, chandef.chan->hw_value, chandef.center_freq1,
		 chandef.center_freq2, chandef.width);

	mac->status &= ~QTNF_MAC_CSA_ACTIVE;

	memcpy(&mac->chandef, &chandef, sizeof(mac->chandef));

	for (i = 0; i < QTNF_MAX_INTF; i++) {