staging: wilc1000: remove code for HOST_IF_GET_LINKSPEED
authorAlison Schofield <amsfield22@gmail.com>
Fri, 26 Feb 2016 07:01:13 +0000 (23:01 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2016 03:40:04 +0000 (19:40 -0800)
The function that sent this message id was previously removed.
Finish the cleanup by removing the call to the message handler,
the message handler, the #define, and the link_speed var.

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c

index 546161f5572a2c72571920d78a1e5fa11e97b14e..633145329222e0228c43c2c7105d154d61187654 100644 (file)
@@ -32,7 +32,6 @@
 #define HOST_IF_MSG_REMAIN_ON_CHAN              20
 #define HOST_IF_MSG_REGISTER_FRAME              21
 #define HOST_IF_MSG_LISTEN_TIMER_FIRED          22
-#define HOST_IF_MSG_GET_LINKSPEED               23
 #define HOST_IF_MSG_SET_WFIDRV_HANDLER          24
 #define HOST_IF_MSG_SET_MAC_ADDRESS             25
 #define HOST_IF_MSG_GET_MAC_ADDRESS             26
@@ -247,7 +246,6 @@ static u8 rcv_assoc_resp[MAX_ASSOC_RESP_FRAME_SIZE];
 static bool scan_while_connected;
 
 static s8 rssi;
-static s8 link_speed;
 static u8 set_ip[2][4];
 static u8 get_ip[2][4];
 static u32 inactive_time;
@@ -1970,27 +1968,6 @@ static void Handle_GetRssi(struct wilc_vif *vif)
        up(&vif->hif_drv->sem_get_rssi);
 }
 
-static void Handle_GetLinkspeed(struct wilc_vif *vif)
-{
-       s32 result = 0;
-       struct wid wid;
-
-       link_speed = 0;
-
-       wid.id = (u16)WID_LINKSPEED;
-       wid.type = WID_CHAR;
-       wid.val = &link_speed;
-       wid.size = sizeof(char);
-
-       result = wilc_send_config_pkt(vif, GET_CFG, &wid, 1,
-                                     wilc_get_vif_idx(vif));
-       if (result) {
-               netdev_err(vif->ndev, "Failed to get LINKSPEED value\n");
-               result = -EFAULT;
-       }
-
-}
-
 static s32 Handle_GetStatistics(struct wilc_vif *vif,
                                struct rf_info *pstrStatistics)
 {
@@ -2679,10 +2656,6 @@ static int hostIFthread(void *pvArg)
                        Handle_GetRssi(msg.vif);
                        break;
 
-               case HOST_IF_MSG_GET_LINKSPEED:
-                       Handle_GetLinkspeed(msg.vif);
-                       break;
-
                case HOST_IF_MSG_GET_STATISTICS:
                        Handle_GetStatistics(msg.vif,
                                             (struct rf_info *)msg.body.data);
This page took 0.030418 seconds and 5 git commands to generate.