{
        s32 result = 0;
        u8 msg_type = 0;
-       u8 msg_id = 0;
-       u16 msg_len = 0;
-       u16 wid_id = (u16)WID_NIL;
-       u8 wid_len  = 0;
        u8 mac_status;
-       u8 mac_status_reason_code;
-       u8 mac_status_additional_info;
        struct host_if_drv *hif_drv = vif->hif_drv;
 
        if (!rcvd_info->buffer) {
                        return -EFAULT;
                }
 
-               msg_id = rcvd_info->buffer[1];
-               msg_len = MAKE_WORD16(rcvd_info->buffer[2], rcvd_info->buffer[3]);
-               wid_id = MAKE_WORD16(rcvd_info->buffer[4], rcvd_info->buffer[5]);
-               wid_len = rcvd_info->buffer[6];
                mac_status  = rcvd_info->buffer[7];
-               mac_status_reason_code = rcvd_info->buffer[8];
-               mac_status_additional_info = rcvd_info->buffer[9];
                if (hif_drv->hif_state == HOST_IF_WAITING_CONN_RESP) {
                        host_int_parse_assoc_resp_info(vif, mac_status);
                } else if ((mac_status == MAC_STATUS_DISCONNECTED) &&
 
        const u8 *tx_mic = NULL;
        u8 mode = NO_ENCRYPT;
        u8 op_mode;
-       struct wilc *wl;
        struct wilc_vif *vif;
 
        priv = wiphy_priv(wiphy);
        vif = netdev_priv(netdev);
-       wl = vif->wilc;
 
        switch (params->cipher) {
        case WLAN_CIPHER_SUITE_WEP40:
                    struct cfg80211_ap_settings *settings)
 {
        struct cfg80211_beacon_data *beacon = &settings->beacon;
-       struct wilc_priv *priv;
        s32 ret = 0;
        struct wilc *wl;
        struct wilc_vif *vif;
 
-       priv = wiphy_priv(wiphy);
        vif = netdev_priv(dev);
        wl = vif->wilc;
 
                          const u8 *mac, struct station_parameters *params)
 {
        s32 ret = 0;
-       struct wilc_priv *priv;
        struct add_sta_param sta_params = { {0} };
        struct wilc_vif *vif;
 
        if (!wiphy)
                return -EFAULT;
 
-       priv = wiphy_priv(wiphy);
        vif = netdev_priv(dev);
 
        if (vif->iftype == AP_MODE || vif->iftype == GO_MODE) {