mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 22:02:28 +00:00
staging: wilc1000: remove code for HOST_IF_MSG_SET_MAC_ADDRESS
The function that sent this message id was previously removed. Finish the cleanup by removing the call to the message handler, the message handler, and the #define. Signed-off-by: Alison Schofield <amsfield22@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
05cb0ed75b
commit
ac4cf190fc
@ -33,7 +33,6 @@
|
|||||||
#define HOST_IF_MSG_REGISTER_FRAME 21
|
#define HOST_IF_MSG_REGISTER_FRAME 21
|
||||||
#define HOST_IF_MSG_LISTEN_TIMER_FIRED 22
|
#define HOST_IF_MSG_LISTEN_TIMER_FIRED 22
|
||||||
#define HOST_IF_MSG_SET_WFIDRV_HANDLER 24
|
#define HOST_IF_MSG_SET_WFIDRV_HANDLER 24
|
||||||
#define HOST_IF_MSG_SET_MAC_ADDRESS 25
|
|
||||||
#define HOST_IF_MSG_GET_MAC_ADDRESS 26
|
#define HOST_IF_MSG_GET_MAC_ADDRESS 26
|
||||||
#define HOST_IF_MSG_SET_OPERATION_MODE 27
|
#define HOST_IF_MSG_SET_OPERATION_MODE 27
|
||||||
#define HOST_IF_MSG_SET_IPADDRESS 28
|
#define HOST_IF_MSG_SET_IPADDRESS 28
|
||||||
@ -413,30 +412,6 @@ static s32 handle_get_ip_address(struct wilc_vif *vif, u8 idx)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handle_set_mac_address(struct wilc_vif *vif,
|
|
||||||
struct set_mac_addr *set_mac_addr)
|
|
||||||
{
|
|
||||||
int ret = 0;
|
|
||||||
struct wid wid;
|
|
||||||
u8 *mac_buf;
|
|
||||||
|
|
||||||
mac_buf = kmemdup(set_mac_addr->mac_addr, ETH_ALEN, GFP_KERNEL);
|
|
||||||
if (!mac_buf)
|
|
||||||
return;
|
|
||||||
|
|
||||||
wid.id = (u16)WID_MAC_ADDR;
|
|
||||||
wid.type = WID_STR;
|
|
||||||
wid.val = mac_buf;
|
|
||||||
wid.size = ETH_ALEN;
|
|
||||||
|
|
||||||
ret = wilc_send_config_pkt(vif, SET_CFG, &wid, 1,
|
|
||||||
wilc_get_vif_idx(vif));
|
|
||||||
if (ret)
|
|
||||||
netdev_err(vif->ndev, "Failed to set mac address\n");
|
|
||||||
|
|
||||||
kfree(mac_buf);
|
|
||||||
}
|
|
||||||
|
|
||||||
static s32 handle_get_mac_address(struct wilc_vif *vif,
|
static s32 handle_get_mac_address(struct wilc_vif *vif,
|
||||||
struct get_mac_addr *get_mac_addr)
|
struct get_mac_addr *get_mac_addr)
|
||||||
{
|
{
|
||||||
@ -2654,11 +2629,6 @@ static int hostIFthread(void *pvArg)
|
|||||||
handle_get_ip_address(vif, msg.body.ip_info.idx);
|
handle_get_ip_address(vif, msg.body.ip_info.idx);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HOST_IF_MSG_SET_MAC_ADDRESS:
|
|
||||||
handle_set_mac_address(msg.vif,
|
|
||||||
&msg.body.set_mac_info);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case HOST_IF_MSG_GET_MAC_ADDRESS:
|
case HOST_IF_MSG_GET_MAC_ADDRESS:
|
||||||
handle_get_mac_address(msg.vif,
|
handle_get_mac_address(msg.vif,
|
||||||
&msg.body.get_mac_info);
|
&msg.body.get_mac_info);
|
||||||
|
Loading…
Reference in New Issue
Block a user