diff options
author | Moritz Muehlenhoff <jmm@debian.org> | 2009-01-21 21:00:41 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 21:53:16 (GMT) |
commit | 28b17a4bdf148b7591c004efd10a8850d52849ec (patch) | |
tree | f5efadf76aa6850d79f475e5f16e2160450341f3 /drivers/staging/wlan-ng/p80211wext.c | |
parent | 9cba46dc1c1c98d9e1c44be7b8d435ad553f799e (diff) | |
download | linux-fsl-qoriq-28b17a4bdf148b7591c004efd10a8850d52849ec.tar.xz |
Staging: wlan-ng: Remove use of WLAN_ADDR_LEN
Replace the driver local WLAN_ADDR_LEN constant through the kernel-wide ETH_ALEN definiton.
Signed-off-by: Moritz Muehlenhoff <jmm@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/wlan-ng/p80211wext.c')
-rw-r--r-- | drivers/staging/wlan-ng/p80211wext.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/wlan-ng/p80211wext.c b/drivers/staging/wlan-ng/p80211wext.c index 0d570f1..f817fe4 100644 --- a/drivers/staging/wlan-ng/p80211wext.c +++ b/drivers/staging/wlan-ng/p80211wext.c @@ -51,6 +51,7 @@ #include <asm/bitops.h> #include <asm/uaccess.h> #include <asm/byteorder.h> +#include <linux/if_ether.h> /*================================================================*/ /* Project Includes */ @@ -1805,9 +1806,9 @@ int p80211wext_event_associated(wlandevice_t *wlandev, int assoc) /* Send the association state first */ data.ap_addr.sa_family = ARPHRD_ETHER; if (assoc) { - memcpy(data.ap_addr.sa_data, wlandev->bssid, WLAN_ADDR_LEN); + memcpy(data.ap_addr.sa_data, wlandev->bssid, ETH_ALEN); } else { - memset(data.ap_addr.sa_data, 0, WLAN_ADDR_LEN); + memset(data.ap_addr.sa_data, 0, ETH_ALEN); } if (wlan_wext_write) |