aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/scan.c
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2007-05-25 13:05:16 -0400
committerJohn W. Linville <linville@tuxdriver.com>2007-06-11 14:28:40 -0400
commit634b8f49c11f49272b09d13a34b22a17b8c3d419 (patch)
tree75ccd1d8160390235ada42d1c311710534392a02 /drivers/net/wireless/libertas/scan.c
parentec3eef28d9bc3fbcc5d3dd668dffcaa675015b11 (diff)
[PATCH] libertas: remove unused variables in wlan_dev_t
Actually, this patch removev wlan_dev_t totally and puts the used variables of it directly into wlan_private. That reduces one level of indirection and looks a little bit simpler. It's now "priv->card" and not "priv->wlan_dev.card" and "priv->dev" instead of "priv->wlan_dev.netdev" Changed two occurences of "((wlan_private *) dev->priv)->wlan_dev.netdev" into "dev", because I didn't see the point in doing pointer-ping-pong. The variables "ioport", "upld_rcv" and "upld_type" where unused. They have been removed. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/scan.c')
-rw-r--r--drivers/net/wireless/libertas/scan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c
index 48317503360a..479c0090b947 100644
--- a/drivers/net/wireless/libertas/scan.c
+++ b/drivers/net/wireless/libertas/scan.c
@@ -733,7 +733,7 @@ static int wlan_scan_channel_list(wlan_private * priv,
733 priv->adapter->last_scanned_channel = ptmpchan->channumber; 733 priv->adapter->last_scanned_channel = ptmpchan->channumber;
734 734
735 memset(&wrqu, 0, sizeof(union iwreq_data)); 735 memset(&wrqu, 0, sizeof(union iwreq_data));
736 wireless_send_event(priv->wlan_dev.netdev, SIOCGIWSCAN, &wrqu, NULL); 736 wireless_send_event(priv->dev, SIOCGIWSCAN, &wrqu, NULL);
737 737
738done: 738done:
739 lbs_deb_leave_args(LBS_DEB_SCAN, "ret %d", ret); 739 lbs_deb_leave_args(LBS_DEB_SCAN, "ret %d", ret);
@@ -805,8 +805,8 @@ int wlan_scan_networks(wlan_private * priv,
805 805
806 /* Keep the data path active if we are only scanning our current channel */ 806 /* Keep the data path active if we are only scanning our current channel */
807 if (!scancurrentchanonly) { 807 if (!scancurrentchanonly) {
808 netif_stop_queue(priv->wlan_dev.netdev); 808 netif_stop_queue(priv->dev);
809 netif_carrier_off(priv->wlan_dev.netdev); 809 netif_carrier_off(priv->dev);
810 netif_stop_queue(priv->mesh_dev); 810 netif_stop_queue(priv->mesh_dev);
811 netif_carrier_off(priv->mesh_dev); 811 netif_carrier_off(priv->mesh_dev);
812 } 812 }
@@ -827,8 +827,8 @@ int wlan_scan_networks(wlan_private * priv,
827 wlan_scan_process_results(priv); 827 wlan_scan_process_results(priv);
828 828
829 if (priv->adapter->connect_status == libertas_connected) { 829 if (priv->adapter->connect_status == libertas_connected) {
830 netif_carrier_on(priv->wlan_dev.netdev); 830 netif_carrier_on(priv->dev);
831 netif_wake_queue(priv->wlan_dev.netdev); 831 netif_wake_queue(priv->dev);
832 netif_carrier_on(priv->mesh_dev); 832 netif_carrier_on(priv->mesh_dev);
833 netif_wake_queue(priv->mesh_dev); 833 netif_wake_queue(priv->mesh_dev);
834 } 834 }