1 From 0010ecb4113ddaa113f084cc4a8dce7c6d807bf4 Mon Sep 17 00:00:00 2001
2 From: Sean McNeil <sean@mcneil.com>
3 Date: Fri, 25 Jul 2008 23:06:08 +0100
4 Subject: [PATCH] fix-wep-needs-keys-before-ap.patch
6 Signed-off-by: Andy Green <andy@openmoko.com>
8 .../function/wlan/ar6000/ar6000/wireless_ext.c | 20 +++++++-------------
9 1 files changed, 7 insertions(+), 13 deletions(-)
11 diff --git a/drivers/sdio/function/wlan/ar6000/ar6000/wireless_ext.c b/drivers/sdio/function/wlan/ar6000/ar6000/wireless_ext.c
12 index db749e2..ede8e62 100644
13 --- a/drivers/sdio/function/wlan/ar6000/ar6000/wireless_ext.c
14 +++ b/drivers/sdio/function/wlan/ar6000/ar6000/wireless_ext.c
15 @@ -424,10 +424,6 @@ ar6000_ioctl_giwessid(struct net_device *dev,
19 - if (!ar->arSsidLen) {
24 data->length = ar->arSsidLen;
25 A_MEMCPY(essid, ar->arSsid, ar->arSsidLen);
26 @@ -818,12 +814,6 @@ ar6000_ioctl_siwencode(struct net_device *dev,
27 AR_SOFTC_T *ar = (AR_SOFTC_T *)dev->priv;
29 A_INT32 auth = ar->arDot11AuthMode;
31 - * Static WEP Keys should be configured before setting the SSID
33 - if (ar->arSsidLen) {
37 if (ar->arWlanState == WLAN_DISABLED) {
39 @@ -894,6 +884,7 @@ ar6000_ioctl_siwencode(struct net_device *dev,
40 * profile has changed. Erase ssid to signal change
42 A_MEMZERO(ar->arSsid, sizeof(ar->arSsid));
47 @@ -1096,8 +1087,10 @@ static int ar6000_ioctl_siwauth(struct net_device *dev,
52 - memset(ar->arSsid, 0, sizeof(ar->arSsid));
54 + A_MEMZERO(ar->arSsid, sizeof(ar->arSsid));
60 @@ -1335,7 +1328,8 @@ ar6000_ioctl_setparam(struct net_device *dev,
62 * profile has changed. Erase ssid to signal change
64 - A_MEMZERO(ar->arSsid, sizeof(ar->arSsid));
65 + A_MEMZERO(ar->arSsid, sizeof(ar->arSsid));