diff options
author | Jouni Malinen <jkmaline@cc.hut.fi> | 2005-05-12 22:54:16 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-05-12 22:54:16 -0400 |
commit | ff1d2767d5a43c85f944e86a45284b721f66196c (patch) | |
tree | 91c1b6dd20bd772bc112c0012830678b46b69604 /drivers/net/wireless/wl3501_cs.c | |
parent | 88d7bd8cb9eb8d64bf7997600b0d64f7834047c5 (diff) |
Add HostAP wireless driver.
Includes minor cleanups from Adrian Bunk <bunk@stusta.de>.
Diffstat (limited to 'drivers/net/wireless/wl3501_cs.c')
-rw-r--r-- | drivers/net/wireless/wl3501_cs.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/wireless/wl3501_cs.c b/drivers/net/wireless/wl3501_cs.c index 1433e5aaf1b4..0e3afab62750 100644 --- a/drivers/net/wireless/wl3501_cs.c +++ b/drivers/net/wireless/wl3501_cs.c | |||
@@ -297,7 +297,8 @@ static int wl3501_get_flash_mac_addr(struct wl3501_card *this) | |||
297 | * | 297 | * |
298 | * Move 'size' bytes from PC to card. (Shouldn't be interrupted) | 298 | * Move 'size' bytes from PC to card. (Shouldn't be interrupted) |
299 | */ | 299 | */ |
300 | void wl3501_set_to_wla(struct wl3501_card *this, u16 dest, void *src, int size) | 300 | static void wl3501_set_to_wla(struct wl3501_card *this, u16 dest, void *src, |
301 | int size) | ||
301 | { | 302 | { |
302 | /* switch to SRAM Page 0 */ | 303 | /* switch to SRAM Page 0 */ |
303 | wl3501_switch_page(this, (dest & 0x8000) ? WL3501_BSS_SPAGE1 : | 304 | wl3501_switch_page(this, (dest & 0x8000) ? WL3501_BSS_SPAGE1 : |
@@ -318,8 +319,8 @@ void wl3501_set_to_wla(struct wl3501_card *this, u16 dest, void *src, int size) | |||
318 | * | 319 | * |
319 | * Move 'size' bytes from card to PC. (Shouldn't be interrupted) | 320 | * Move 'size' bytes from card to PC. (Shouldn't be interrupted) |
320 | */ | 321 | */ |
321 | void wl3501_get_from_wla(struct wl3501_card *this, u16 src, void *dest, | 322 | static void wl3501_get_from_wla(struct wl3501_card *this, u16 src, void *dest, |
322 | int size) | 323 | int size) |
323 | { | 324 | { |
324 | /* switch to SRAM Page 0 */ | 325 | /* switch to SRAM Page 0 */ |
325 | wl3501_switch_page(this, (src & 0x8000) ? WL3501_BSS_SPAGE1 : | 326 | wl3501_switch_page(this, (src & 0x8000) ? WL3501_BSS_SPAGE1 : |
@@ -1439,14 +1440,14 @@ fail: | |||
1439 | goto out; | 1440 | goto out; |
1440 | } | 1441 | } |
1441 | 1442 | ||
1442 | struct net_device_stats *wl3501_get_stats(struct net_device *dev) | 1443 | static struct net_device_stats *wl3501_get_stats(struct net_device *dev) |
1443 | { | 1444 | { |
1444 | struct wl3501_card *this = dev->priv; | 1445 | struct wl3501_card *this = dev->priv; |
1445 | 1446 | ||
1446 | return &this->stats; | 1447 | return &this->stats; |
1447 | } | 1448 | } |
1448 | 1449 | ||
1449 | struct iw_statistics *wl3501_get_wireless_stats(struct net_device *dev) | 1450 | static struct iw_statistics *wl3501_get_wireless_stats(struct net_device *dev) |
1450 | { | 1451 | { |
1451 | struct wl3501_card *this = dev->priv; | 1452 | struct wl3501_card *this = dev->priv; |
1452 | struct iw_statistics *wstats = &this->wstats; | 1453 | struct iw_statistics *wstats = &this->wstats; |