Commit add0f9fe authored by Anchal Jain's avatar Anchal Jain Committed by Greg Kroah-Hartman

staging: wilc1000: Remove camel case in variable names.

Remove a problem detect by checkpatch.pl
CHECK: Avoid CamelCase: <srcAdd>
Signed-off-by: default avatarAnchal Jain <anchalj109@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 992aa7b5
...@@ -24,7 +24,7 @@ struct wilc_wfi_radiotap_cb_hdr { ...@@ -24,7 +24,7 @@ struct wilc_wfi_radiotap_cb_hdr {
static struct net_device *wilc_wfi_mon; /* global monitor netdev */ static struct net_device *wilc_wfi_mon; /* global monitor netdev */
static u8 srcAdd[6]; static u8 srcadd[6];
static u8 bssid[6]; static u8 bssid[6];
static u8 broadcast[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; static u8 broadcast[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
/** /**
...@@ -228,11 +228,11 @@ static netdev_tx_t WILC_WFI_mon_xmit(struct sk_buff *skb, ...@@ -228,11 +228,11 @@ static netdev_tx_t WILC_WFI_mon_xmit(struct sk_buff *skb,
skb->dev = mon_priv->real_ndev; skb->dev = mon_priv->real_ndev;
/* Identify if Ethernet or MAC header (data or mgmt) */ /* Identify if Ethernet or MAC header (data or mgmt) */
memcpy(srcAdd, &skb->data[10], 6); memcpy(srcadd, &skb->data[10], 6);
memcpy(bssid, &skb->data[16], 6); memcpy(bssid, &skb->data[16], 6);
/* if source address and bssid fields are equal>>Mac header */ /* if source address and bssid fields are equal>>Mac header */
/*send it to mgmt frames handler */ /*send it to mgmt frames handler */
if (!(memcmp(srcAdd, bssid, 6))) { if (!(memcmp(srcadd, bssid, 6))) {
ret = mon_mgmt_tx(mon_priv->real_ndev, skb->data, skb->len); ret = mon_mgmt_tx(mon_priv->real_ndev, skb->data, skb->len);
if (ret) if (ret)
netdev_err(dev, "fail to mgmt tx\n"); netdev_err(dev, "fail to mgmt tx\n");
......
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