aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlan-ng/p80211netdev.c
diff options
context:
space:
mode:
authorMithlesh Thukral <mithlesh@linsyssoft.com>2009-06-10 10:06:11 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 15:01:26 -0400
commit297f06cea635ea4552541a11e7fb7014425110c6 (patch)
tree7468f14f1bd2dcf8767ce9b24c07c97ae6396434 /drivers/staging/wlan-ng/p80211netdev.c
parent0984e56a65a29ad0700c5abf657327e73929ea1f (diff)
staging: wlan-ng: scripts/checkpatch.pl error fixes.
scripts/checkpatch.pl error fixes. This is a TODO item. This patch fixes most of the errors reported by checkpatch.pl in wlan-ng directory of staging tree. Signed-off-by: Mithlesh Thukral <mithlesh@linsyssoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/wlan-ng/p80211netdev.c')
-rw-r--r--drivers/staging/wlan-ng/p80211netdev.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c
index c273c034a83..e397b32ece6 100644
--- a/drivers/staging/wlan-ng/p80211netdev.c
+++ b/drivers/staging/wlan-ng/p80211netdev.c
@@ -94,18 +94,18 @@
94static void p80211netdev_rx_bh(unsigned long arg); 94static void p80211netdev_rx_bh(unsigned long arg);
95 95
96/* netdevice method functions */ 96/* netdevice method functions */
97static int p80211knetdev_init(netdevice_t * netdev); 97static int p80211knetdev_init(netdevice_t *netdev);
98static struct net_device_stats *p80211knetdev_get_stats(netdevice_t * netdev); 98static struct net_device_stats *p80211knetdev_get_stats(netdevice_t *netdev);
99static int p80211knetdev_open(netdevice_t * netdev); 99static int p80211knetdev_open(netdevice_t *netdev);
100static int p80211knetdev_stop(netdevice_t * netdev); 100static int p80211knetdev_stop(netdevice_t *netdev);
101static int p80211knetdev_hard_start_xmit(struct sk_buff *skb, 101static int p80211knetdev_hard_start_xmit(struct sk_buff *skb,
102 netdevice_t * netdev); 102 netdevice_t *netdev);
103static void p80211knetdev_set_multicast_list(netdevice_t * dev); 103static void p80211knetdev_set_multicast_list(netdevice_t *dev);
104static int p80211knetdev_do_ioctl(netdevice_t * dev, struct ifreq *ifr, 104static int p80211knetdev_do_ioctl(netdevice_t *dev, struct ifreq *ifr,
105 int cmd); 105 int cmd);
106static int p80211knetdev_set_mac_address(netdevice_t * dev, void *addr); 106static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr);
107static void p80211knetdev_tx_timeout(netdevice_t * netdev); 107static void p80211knetdev_tx_timeout(netdevice_t *netdev);
108static int p80211_rx_typedrop(wlandevice_t * wlandev, u16 fc); 108static int p80211_rx_typedrop(wlandevice_t *wlandev, u16 fc);
109 109
110int wlan_watchdog = 5000; 110int wlan_watchdog = 5000;
111module_param(wlan_watchdog, int, 0644); 111module_param(wlan_watchdog, int, 0644);
@@ -127,7 +127,7 @@ MODULE_PARM_DESC(wlan_wext_write, "enable write wireless extensions");
127* Returns: 127* Returns:
128* nothing 128* nothing
129----------------------------------------------------------------*/ 129----------------------------------------------------------------*/
130static int p80211knetdev_init(netdevice_t * netdev) 130static int p80211knetdev_init(netdevice_t *netdev)
131{ 131{
132 /* Called in response to register_netdev */ 132 /* Called in response to register_netdev */
133 /* This is usually the probe function, but the probe has */ 133 /* This is usually the probe function, but the probe has */
@@ -174,7 +174,7 @@ static struct net_device_stats *p80211knetdev_get_stats(netdevice_t * netdev)
174* Returns: 174* Returns:
175* zero on success, non-zero otherwise 175* zero on success, non-zero otherwise
176----------------------------------------------------------------*/ 176----------------------------------------------------------------*/
177static int p80211knetdev_open(netdevice_t * netdev) 177static int p80211knetdev_open(netdevice_t *netdev)
178{ 178{
179 int result = 0; /* success */ 179 int result = 0; /* success */
180 wlandevice_t *wlandev = netdev->ml_priv; 180 wlandevice_t *wlandev = netdev->ml_priv;
@@ -209,7 +209,7 @@ static int p80211knetdev_open(netdevice_t * netdev)
209* Returns: 209* Returns:
210* zero on success, non-zero otherwise 210* zero on success, non-zero otherwise
211----------------------------------------------------------------*/ 211----------------------------------------------------------------*/
212static int p80211knetdev_stop(netdevice_t * netdev) 212static int p80211knetdev_stop(netdevice_t *netdev)
213{ 213{
214 int result = 0; 214 int result = 0;
215 wlandevice_t *wlandev = netdev->ml_priv; 215 wlandevice_t *wlandev = netdev->ml_priv;
@@ -236,7 +236,7 @@ static int p80211knetdev_stop(netdevice_t * netdev)
236* Side effects: 236* Side effects:
237* 237*
238----------------------------------------------------------------*/ 238----------------------------------------------------------------*/
239void p80211netdev_rx(wlandevice_t * wlandev, struct sk_buff *skb) 239void p80211netdev_rx(wlandevice_t *wlandev, struct sk_buff *skb)
240{ 240{
241 /* Enqueue for post-irq processing */ 241 /* Enqueue for post-irq processing */
242 skb_queue_tail(&wlandev->nsd_rxq, skb); 242 skb_queue_tail(&wlandev->nsd_rxq, skb);
@@ -345,7 +345,7 @@ static void p80211netdev_rx_bh(unsigned long arg)
345* zero on success, non-zero on failure. 345* zero on success, non-zero on failure.
346----------------------------------------------------------------*/ 346----------------------------------------------------------------*/
347static int p80211knetdev_hard_start_xmit(struct sk_buff *skb, 347static int p80211knetdev_hard_start_xmit(struct sk_buff *skb,
348 netdevice_t * netdev) 348 netdevice_t *netdev)
349{ 349{
350 int result = 0; 350 int result = 0;
351 int txresult = -1; 351 int txresult = -1;
@@ -472,7 +472,7 @@ failed:
472* Returns: 472* Returns:
473* nothing 473* nothing
474----------------------------------------------------------------*/ 474----------------------------------------------------------------*/
475static void p80211knetdev_set_multicast_list(netdevice_t * dev) 475static void p80211knetdev_set_multicast_list(netdevice_t *dev)
476{ 476{
477 wlandevice_t *wlandev = dev->ml_priv; 477 wlandevice_t *wlandev = dev->ml_priv;
478 478
@@ -485,7 +485,7 @@ static void p80211knetdev_set_multicast_list(netdevice_t * dev)
485 485
486#ifdef SIOCETHTOOL 486#ifdef SIOCETHTOOL
487 487
488static int p80211netdev_ethtool(wlandevice_t * wlandev, void __user * useraddr) 488static int p80211netdev_ethtool(wlandevice_t *wlandev, void __user *useraddr)
489{ 489{
490 u32 ethcmd; 490 u32 ethcmd;
491 struct ethtool_drvinfo info; 491 struct ethtool_drvinfo info;
@@ -557,7 +557,7 @@ static int p80211netdev_ethtool(wlandevice_t * wlandev, void __user * useraddr)
557* Process thread (ioctl caller). TODO: SMP support may require 557* Process thread (ioctl caller). TODO: SMP support may require
558* locks. 558* locks.
559----------------------------------------------------------------*/ 559----------------------------------------------------------------*/
560static int p80211knetdev_do_ioctl(netdevice_t * dev, struct ifreq *ifr, int cmd) 560static int p80211knetdev_do_ioctl(netdevice_t *dev, struct ifreq *ifr, int cmd)
561{ 561{
562 int result = 0; 562 int result = 0;
563 p80211ioctl_req_t *req = (p80211ioctl_req_t *) ifr; 563 p80211ioctl_req_t *req = (p80211ioctl_req_t *) ifr;
@@ -634,7 +634,7 @@ bail:
634* 634*
635* by: Collin R. Mulliner <collin@mulliner.org> 635* by: Collin R. Mulliner <collin@mulliner.org>
636----------------------------------------------------------------*/ 636----------------------------------------------------------------*/
637static int p80211knetdev_set_mac_address(netdevice_t * dev, void *addr) 637static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr)
638{ 638{
639 struct sockaddr *new_addr = addr; 639 struct sockaddr *new_addr = addr;
640 p80211msg_dot11req_mibset_t dot11req; 640 p80211msg_dot11req_mibset_t dot11req;
@@ -694,7 +694,7 @@ static int p80211knetdev_set_mac_address(netdevice_t * dev, void *addr)
694 return result; 694 return result;
695} 695}
696 696
697static int wlan_change_mtu(netdevice_t * dev, int new_mtu) 697static int wlan_change_mtu(netdevice_t *dev, int new_mtu)
698{ 698{
699 /* 2312 is max 802.11 payload, 20 is overhead, (ether + llc +snap) 699 /* 2312 is max 802.11 payload, 20 is overhead, (ether + llc +snap)
700 and another 8 for wep. */ 700 and another 8 for wep. */
@@ -742,7 +742,7 @@ static const struct net_device_ops p80211_netdev_ops = {
742* compiled drivers, this function will be called in the 742* compiled drivers, this function will be called in the
743* context of the kernel startup code. 743* context of the kernel startup code.
744----------------------------------------------------------------*/ 744----------------------------------------------------------------*/
745int wlan_setup(wlandevice_t * wlandev) 745int wlan_setup(wlandevice_t *wlandev)
746{ 746{
747 int result = 0; 747 int result = 0;
748 netdevice_t *dev; 748 netdevice_t *dev;
@@ -800,7 +800,7 @@ int wlan_setup(wlandevice_t * wlandev)
800* compiled drivers, this function will be called in the 800* compiled drivers, this function will be called in the
801* context of the kernel startup code. 801* context of the kernel startup code.
802----------------------------------------------------------------*/ 802----------------------------------------------------------------*/
803int wlan_unsetup(wlandevice_t * wlandev) 803int wlan_unsetup(wlandevice_t *wlandev)
804{ 804{
805 int result = 0; 805 int result = 0;
806 806
@@ -836,7 +836,7 @@ int wlan_unsetup(wlandevice_t * wlandev)
836* Call Context: 836* Call Context:
837* Can be either interrupt or not. 837* Can be either interrupt or not.
838----------------------------------------------------------------*/ 838----------------------------------------------------------------*/
839int register_wlandev(wlandevice_t * wlandev) 839int register_wlandev(wlandevice_t *wlandev)
840{ 840{
841 int i = 0; 841 int i = 0;
842 842
@@ -864,7 +864,7 @@ int register_wlandev(wlandevice_t * wlandev)
864* Call Context: 864* Call Context:
865* Can be either interrupt or not. 865* Can be either interrupt or not.
866----------------------------------------------------------------*/ 866----------------------------------------------------------------*/
867int unregister_wlandev(wlandevice_t * wlandev) 867int unregister_wlandev(wlandevice_t *wlandev)
868{ 868{
869 struct sk_buff *skb; 869 struct sk_buff *skb;
870 870
@@ -907,7 +907,7 @@ int unregister_wlandev(wlandevice_t * wlandev)
907* Call context: 907* Call context:
908* Usually interrupt. 908* Usually interrupt.
909----------------------------------------------------------------*/ 909----------------------------------------------------------------*/
910void p80211netdev_hwremoved(wlandevice_t * wlandev) 910void p80211netdev_hwremoved(wlandevice_t *wlandev)
911{ 911{
912 wlandev->hwremoved = 1; 912 wlandev->hwremoved = 1;
913 if (wlandev->state == WLAN_DEVICE_OPEN) 913 if (wlandev->state == WLAN_DEVICE_OPEN)
@@ -937,7 +937,7 @@ void p80211netdev_hwremoved(wlandevice_t * wlandev)
937* Call context: 937* Call context:
938* interrupt 938* interrupt
939----------------------------------------------------------------*/ 939----------------------------------------------------------------*/
940static int p80211_rx_typedrop(wlandevice_t * wlandev, u16 fc) 940static int p80211_rx_typedrop(wlandevice_t *wlandev, u16 fc)
941{ 941{
942 u16 ftype; 942 u16 ftype;
943 u16 fstype; 943 u16 fstype;
@@ -1095,7 +1095,7 @@ static int p80211_rx_typedrop(wlandevice_t * wlandev, u16 fc)
1095 return drop; 1095 return drop;
1096} 1096}
1097 1097
1098static void p80211knetdev_tx_timeout(netdevice_t * netdev) 1098static void p80211knetdev_tx_timeout(netdevice_t *netdev)
1099{ 1099{
1100 wlandevice_t *wlandev = netdev->ml_priv; 1100 wlandevice_t *wlandev = netdev->ml_priv;
1101 1101