Commit 03806ab3 authored by Georgiana Rodica Chelu's avatar Georgiana Rodica Chelu Committed by Greg Kroah-Hartman

staging: ks7010: ks_wlan_net: Use netdev_info instead of printk

Pass the net_device structure to print_hif_event function
in order to use netdev_info instead of printk.
Signed-off-by: default avatarGeorgiana Rodica Chelu <georgiana.chelu93@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c8be6461
......@@ -2973,117 +2973,117 @@ static int ks_wlan_get_eeprom_cksum(struct net_device *dev,
return 0;
}
static void print_hif_event(int event)
static void print_hif_event(struct net_device *dev, int event)
{
switch (event) {
case HIF_DATA_REQ:
printk("HIF_DATA_REQ\n");
netdev_info(dev, "HIF_DATA_REQ\n");
break;
case HIF_DATA_IND:
printk("HIF_DATA_IND\n");
netdev_info(dev, "HIF_DATA_IND\n");
break;
case HIF_MIB_GET_REQ:
printk("HIF_MIB_GET_REQ\n");
netdev_info(dev, "HIF_MIB_GET_REQ\n");
break;
case HIF_MIB_GET_CONF:
printk("HIF_MIB_GET_CONF\n");
netdev_info(dev, "HIF_MIB_GET_CONF\n");
break;
case HIF_MIB_SET_REQ:
printk("HIF_MIB_SET_REQ\n");
netdev_info(dev, "HIF_MIB_SET_REQ\n");
break;
case HIF_MIB_SET_CONF:
printk("HIF_MIB_SET_CONF\n");
netdev_info(dev, "HIF_MIB_SET_CONF\n");
break;
case HIF_POWERMGT_REQ:
printk("HIF_POWERMGT_REQ\n");
netdev_info(dev, "HIF_POWERMGT_REQ\n");
break;
case HIF_POWERMGT_CONF:
printk("HIF_POWERMGT_CONF\n");
netdev_info(dev, "HIF_POWERMGT_CONF\n");
break;
case HIF_START_REQ:
printk("HIF_START_REQ\n");
netdev_info(dev, "HIF_START_REQ\n");
break;
case HIF_START_CONF:
printk("HIF_START_CONF\n");
netdev_info(dev, "HIF_START_CONF\n");
break;
case HIF_CONNECT_IND:
printk("HIF_CONNECT_IND\n");
netdev_info(dev, "HIF_CONNECT_IND\n");
break;
case HIF_STOP_REQ:
printk("HIF_STOP_REQ\n");
netdev_info(dev, "HIF_STOP_REQ\n");
break;
case HIF_STOP_CONF:
printk("HIF_STOP_CONF\n");
netdev_info(dev, "HIF_STOP_CONF\n");
break;
case HIF_PS_ADH_SET_REQ:
printk("HIF_PS_ADH_SET_REQ\n");
netdev_info(dev, "HIF_PS_ADH_SET_REQ\n");
break;
case HIF_PS_ADH_SET_CONF:
printk("HIF_PS_ADH_SET_CONF\n");
netdev_info(dev, "HIF_PS_ADH_SET_CONF\n");
break;
case HIF_INFRA_SET_REQ:
printk("HIF_INFRA_SET_REQ\n");
netdev_info(dev, "HIF_INFRA_SET_REQ\n");
break;
case HIF_INFRA_SET_CONF:
printk("HIF_INFRA_SET_CONF\n");
netdev_info(dev, "HIF_INFRA_SET_CONF\n");
break;
case HIF_ADH_SET_REQ:
printk("HIF_ADH_SET_REQ\n");
netdev_info(dev, "HIF_ADH_SET_REQ\n");
break;
case HIF_ADH_SET_CONF:
printk("HIF_ADH_SET_CONF\n");
netdev_info(dev, "HIF_ADH_SET_CONF\n");
break;
case HIF_AP_SET_REQ:
printk("HIF_AP_SET_REQ\n");
netdev_info(dev, "HIF_AP_SET_REQ\n");
break;
case HIF_AP_SET_CONF:
printk("HIF_AP_SET_CONF\n");
netdev_info(dev, "HIF_AP_SET_CONF\n");
break;
case HIF_ASSOC_INFO_IND:
printk("HIF_ASSOC_INFO_IND\n");
netdev_info(dev, "HIF_ASSOC_INFO_IND\n");
break;
case HIF_MIC_FAILURE_REQ:
printk("HIF_MIC_FAILURE_REQ\n");
netdev_info(dev, "HIF_MIC_FAILURE_REQ\n");
break;
case HIF_MIC_FAILURE_CONF:
printk("HIF_MIC_FAILURE_CONF\n");
netdev_info(dev, "HIF_MIC_FAILURE_CONF\n");
break;
case HIF_SCAN_REQ:
printk("HIF_SCAN_REQ\n");
netdev_info(dev, "HIF_SCAN_REQ\n");
break;
case HIF_SCAN_CONF:
printk("HIF_SCAN_CONF\n");
netdev_info(dev, "HIF_SCAN_CONF\n");
break;
case HIF_PHY_INFO_REQ:
printk("HIF_PHY_INFO_REQ\n");
netdev_info(dev, "HIF_PHY_INFO_REQ\n");
break;
case HIF_PHY_INFO_CONF:
printk("HIF_PHY_INFO_CONF\n");
netdev_info(dev, "HIF_PHY_INFO_CONF\n");
break;
case HIF_SLEEP_REQ:
printk("HIF_SLEEP_REQ\n");
netdev_info(dev, "HIF_SLEEP_REQ\n");
break;
case HIF_SLEEP_CONF:
printk("HIF_SLEEP_CONF\n");
netdev_info(dev, "HIF_SLEEP_CONF\n");
break;
case HIF_PHY_INFO_IND:
printk("HIF_PHY_INFO_IND\n");
netdev_info(dev, "HIF_PHY_INFO_IND\n");
break;
case HIF_SCAN_IND:
printk("HIF_SCAN_IND\n");
netdev_info(dev, "HIF_SCAN_IND\n");
break;
case HIF_INFRA_SET2_REQ:
printk("HIF_INFRA_SET2_REQ\n");
netdev_info(dev, "HIF_INFRA_SET2_REQ\n");
break;
case HIF_INFRA_SET2_CONF:
printk("HIF_INFRA_SET2_CONF\n");
netdev_info(dev, "HIF_INFRA_SET2_CONF\n");
break;
case HIF_ADH_SET2_REQ:
printk("HIF_ADH_SET2_REQ\n");
netdev_info(dev, "HIF_ADH_SET2_REQ\n");
break;
case HIF_ADH_SET2_CONF:
printk("HIF_ADH_SET2_CONF\n");
netdev_info(dev, "HIF_ADH_SET2_CONF\n");
}
}
......@@ -3100,7 +3100,7 @@ static int ks_wlan_hostt(struct net_device *dev, struct iw_request_info *info,
event =
priv->hostt.buff[(priv->hostt.qtail - 1 - i) %
SME_EVENT_BUFF_SIZE];
print_hif_event(event);
print_hif_event(dev, event);
}
return 0;
}
......
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