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

Commit 24915597 authored by Ping-Ke Shih's avatar Ping-Ke Shih Committed by Kalle Valo
Browse files

rtlwifi: rename register-based C2H command IDs to V0



Current chips use packet-based C2H commands whose IDs differ from old
ones, so this commit simply gives C2H_V0_ as prefix of command IDs.

Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent c4528686
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -1749,13 +1749,13 @@ void rtl_8723e_c2h_command_handle(struct ieee80211_hw *hw)




	switch (c2h_event.cmd_id) {
	switch (c2h_event.cmd_id) {
	case C2H_BT_RSSI:
	case C2H_V0_BT_RSSI:
			break;
			break;


	case C2H_BT_OP_MODE:
	case C2H_V0_BT_OP_MODE:
			break;
			break;


	case BT_INFO:
	case C2H_V0_BT_INFO:
		RT_TRACE(rtlpriv, COMP_FW, DBG_TRACE,
		RT_TRACE(rtlpriv, COMP_FW, DBG_TRACE,
			"BT info Byte[0] (ID) is 0x%x\n",
			"BT info Byte[0] (ID) is 0x%x\n",
			c2h_event.cmd_id);
			c2h_event.cmd_id);
+10 −10
Original line number Original line Diff line number Diff line
@@ -130,17 +130,17 @@ enum bt_state {
	BT_INFO_STATE_MAX = 7
	BT_INFO_STATE_MAX = 7
};
};


enum rtl8723e_c2h_evt {
enum rtl8723e_c2h_evt_v0 {
	C2H_DBG = 0,
	C2H_V0_DBG = 0,
	C2H_TSF = 1,
	C2H_V0_TSF = 1,
	C2H_AP_RPT_RSP = 2,
	C2H_V0_AP_RPT_RSP = 2,
	/* The FW notify the report of the specific tx packet. */
	/* The FW notify the report of the specific tx packet. */
	C2H_CCX_TX_RPT = 3,
	C2H_V0_CCX_TX_RPT = 3,
	C2H_BT_RSSI = 4,
	C2H_V0_BT_RSSI = 4,
	C2H_BT_OP_MODE = 5,
	C2H_V0_BT_OP_MODE = 5,
	C2H_HW_INFO_EXCH = 10,
	C2H_V0_HW_INFO_EXCH = 10,
	C2H_C2H_H2C_TEST = 11,
	C2H_V0_C2H_H2C_TEST = 11,
	BT_INFO = 12,
	C2H_V0_BT_INFO = 12,
	MAX_C2HEVENT
	MAX_C2HEVENT
};
};