Commit 563c8ad9 authored by navin patidar's avatar navin patidar Committed by Greg Kroah-Hartman

staging: rtl8188eu: Remove command _Set_H2C_MSG and its handler

_Set_H2C_MSG command is never issued by driver and its handler is a
dummy function.
Signed-off-by: default avatarnavin patidar <navin.patidar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 949d4a0d
...@@ -5493,14 +5493,6 @@ u8 mlme_evt_hdl(struct adapter *padapter, unsigned char *pbuf) ...@@ -5493,14 +5493,6 @@ u8 mlme_evt_hdl(struct adapter *padapter, unsigned char *pbuf)
return H2C_SUCCESS; return H2C_SUCCESS;
} }
u8 h2c_msg_hdl(struct adapter *padapter, unsigned char *pbuf)
{
if (!pbuf)
return H2C_PARAMETERS_ERROR;
return H2C_SUCCESS;
}
u8 tx_beacon_hdl(struct adapter *padapter, unsigned char *pbuf) u8 tx_beacon_hdl(struct adapter *padapter, unsigned char *pbuf)
{ {
if (send_beacon(padapter) == _FAIL) { if (send_beacon(padapter) == _FAIL) {
......
...@@ -413,7 +413,6 @@ enum rtw_h2c_cmd { ...@@ -413,7 +413,6 @@ enum rtw_h2c_cmd {
GEN_CMD_CODE(_TX_Beacon), GEN_CMD_CODE(_TX_Beacon),
GEN_CMD_CODE(_Set_MLME_EVT), GEN_CMD_CODE(_Set_MLME_EVT),
GEN_CMD_CODE(_Set_Drv_Extra), GEN_CMD_CODE(_Set_Drv_Extra),
GEN_CMD_CODE(_Set_H2C_MSG),
GEN_CMD_CODE(_SetChannelPlan), GEN_CMD_CODE(_SetChannelPlan),
MAX_H2CCMD MAX_H2CCMD
...@@ -435,7 +434,6 @@ static struct _cmd_callback rtw_cmd_callback[] = { ...@@ -435,7 +434,6 @@ static struct _cmd_callback rtw_cmd_callback[] = {
{GEN_CMD_CODE(_TX_Beacon), NULL}, {GEN_CMD_CODE(_TX_Beacon), NULL},
{GEN_CMD_CODE(_Set_MLME_EVT), NULL}, {GEN_CMD_CODE(_Set_MLME_EVT), NULL},
{GEN_CMD_CODE(_Set_Drv_Extra), NULL}, {GEN_CMD_CODE(_Set_Drv_Extra), NULL},
{GEN_CMD_CODE(_Set_H2C_MSG), NULL},
{GEN_CMD_CODE(_SetChannelPlan), NULL}, {GEN_CMD_CODE(_SetChannelPlan), NULL},
}; };
#endif #endif
......
...@@ -722,7 +722,6 @@ static struct cmd_hdl wlancmds[] = { ...@@ -722,7 +722,6 @@ static struct cmd_hdl wlancmds[] = {
GEN_MLME_EXT_HANDLER(sizeof(struct wlan_bssid_ex), tx_beacon_hdl) GEN_MLME_EXT_HANDLER(sizeof(struct wlan_bssid_ex), tx_beacon_hdl)
GEN_MLME_EXT_HANDLER(0, mlme_evt_hdl) GEN_MLME_EXT_HANDLER(0, mlme_evt_hdl)
GEN_MLME_EXT_HANDLER(0, rtw_drvextra_cmd_hdl) GEN_MLME_EXT_HANDLER(0, rtw_drvextra_cmd_hdl)
GEN_MLME_EXT_HANDLER(0, h2c_msg_hdl)
GEN_MLME_EXT_HANDLER(sizeof(struct SetChannelPlan_param), set_chplan_hdl) GEN_MLME_EXT_HANDLER(sizeof(struct SetChannelPlan_param), set_chplan_hdl)
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment