aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/atmel.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/atmel.c')
-rw-r--r--drivers/net/wireless/atmel.c94
1 files changed, 47 insertions, 47 deletions
diff --git a/drivers/net/wireless/atmel.c b/drivers/net/wireless/atmel.c
index b827d51c30a3..0d950f209dae 100644
--- a/drivers/net/wireless/atmel.c
+++ b/drivers/net/wireless/atmel.c
@@ -844,18 +844,18 @@ static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev)
844 if (priv->wep_is_on) 844 if (priv->wep_is_on)
845 frame_ctl |= IEEE80211_FCTL_PROTECTED; 845 frame_ctl |= IEEE80211_FCTL_PROTECTED;
846 if (priv->operating_mode == IW_MODE_ADHOC) { 846 if (priv->operating_mode == IW_MODE_ADHOC) {
847 skb_copy_from_linear_data(skb, &header.addr1, 6); 847 skb_copy_from_linear_data(skb, &header.addr1, ETH_ALEN);
848 memcpy(&header.addr2, dev->dev_addr, 6); 848 memcpy(&header.addr2, dev->dev_addr, ETH_ALEN);
849 memcpy(&header.addr3, priv->BSSID, 6); 849 memcpy(&header.addr3, priv->BSSID, ETH_ALEN);
850 } else { 850 } else {
851 frame_ctl |= IEEE80211_FCTL_TODS; 851 frame_ctl |= IEEE80211_FCTL_TODS;
852 memcpy(&header.addr1, priv->CurrentBSSID, 6); 852 memcpy(&header.addr1, priv->CurrentBSSID, ETH_ALEN);
853 memcpy(&header.addr2, dev->dev_addr, 6); 853 memcpy(&header.addr2, dev->dev_addr, ETH_ALEN);
854 skb_copy_from_linear_data(skb, &header.addr3, 6); 854 skb_copy_from_linear_data(skb, &header.addr3, ETH_ALEN);
855 } 855 }
856 856
857 if (priv->use_wpa) 857 if (priv->use_wpa)
858 memcpy(&header.addr4, SNAP_RFC1024, 6); 858 memcpy(&header.addr4, SNAP_RFC1024, ETH_ALEN);
859 859
860 header.frame_control = cpu_to_le16(frame_ctl); 860 header.frame_control = cpu_to_le16(frame_ctl);
861 /* Copy the wireless header into the card */ 861 /* Copy the wireless header into the card */
@@ -929,11 +929,11 @@ static void fast_rx_path(struct atmel_private *priv,
929 } 929 }
930 } 930 }
931 931
932 memcpy(skbp, header->addr1, 6); /* destination address */ 932 memcpy(skbp, header->addr1, ETH_ALEN); /* destination address */
933 if (le16_to_cpu(header->frame_control) & IEEE80211_FCTL_FROMDS) 933 if (le16_to_cpu(header->frame_control) & IEEE80211_FCTL_FROMDS)
934 memcpy(&skbp[6], header->addr3, 6); 934 memcpy(&skbp[ETH_ALEN], header->addr3, ETH_ALEN);
935 else 935 else
936 memcpy(&skbp[6], header->addr2, 6); /* source address */ 936 memcpy(&skbp[ETH_ALEN], header->addr2, ETH_ALEN); /* source address */
937 937
938 skb->protocol = eth_type_trans(skb, priv->dev); 938 skb->protocol = eth_type_trans(skb, priv->dev);
939 skb->ip_summed = CHECKSUM_NONE; 939 skb->ip_summed = CHECKSUM_NONE;
@@ -969,14 +969,14 @@ static void frag_rx_path(struct atmel_private *priv,
969 u16 msdu_size, u16 rx_packet_loc, u32 crc, u16 seq_no, 969 u16 msdu_size, u16 rx_packet_loc, u32 crc, u16 seq_no,
970 u8 frag_no, int more_frags) 970 u8 frag_no, int more_frags)
971{ 971{
972 u8 mac4[6]; 972 u8 mac4[ETH_ALEN];
973 u8 source[6]; 973 u8 source[ETH_ALEN];
974 struct sk_buff *skb; 974 struct sk_buff *skb;
975 975
976 if (le16_to_cpu(header->frame_control) & IEEE80211_FCTL_FROMDS) 976 if (le16_to_cpu(header->frame_control) & IEEE80211_FCTL_FROMDS)
977 memcpy(source, header->addr3, 6); 977 memcpy(source, header->addr3, ETH_ALEN);
978 else 978 else
979 memcpy(source, header->addr2, 6); 979 memcpy(source, header->addr2, ETH_ALEN);
980 980
981 rx_packet_loc += 24; /* skip header */ 981 rx_packet_loc += 24; /* skip header */
982 982
@@ -984,9 +984,9 @@ static void frag_rx_path(struct atmel_private *priv,
984 msdu_size -= 4; 984 msdu_size -= 4;
985 985
986 if (frag_no == 0) { /* first fragment */ 986 if (frag_no == 0) { /* first fragment */
987 atmel_copy_to_host(priv->dev, mac4, rx_packet_loc, 6); 987 atmel_copy_to_host(priv->dev, mac4, rx_packet_loc, ETH_ALEN);
988 msdu_size -= 6; 988 msdu_size -= ETH_ALEN;
989 rx_packet_loc += 6; 989 rx_packet_loc += ETH_ALEN;
990 990
991 if (priv->do_rx_crc) 991 if (priv->do_rx_crc)
992 crc = crc32_le(crc, mac4, 6); 992 crc = crc32_le(crc, mac4, 6);
@@ -994,9 +994,9 @@ static void frag_rx_path(struct atmel_private *priv,
994 priv->frag_seq = seq_no; 994 priv->frag_seq = seq_no;
995 priv->frag_no = 1; 995 priv->frag_no = 1;
996 priv->frag_len = msdu_size; 996 priv->frag_len = msdu_size;
997 memcpy(priv->frag_source, source, 6); 997 memcpy(priv->frag_source, source, ETH_ALEN);
998 memcpy(&priv->rx_buf[6], source, 6); 998 memcpy(&priv->rx_buf[ETH_ALEN], source, ETH_ALEN);
999 memcpy(priv->rx_buf, header->addr1, 6); 999 memcpy(priv->rx_buf, header->addr1, ETH_ALEN);
1000 1000
1001 atmel_copy_to_host(priv->dev, &priv->rx_buf[12], rx_packet_loc, msdu_size); 1001 atmel_copy_to_host(priv->dev, &priv->rx_buf[12], rx_packet_loc, msdu_size);
1002 1002
@@ -1006,13 +1006,13 @@ static void frag_rx_path(struct atmel_private *priv,
1006 atmel_copy_to_host(priv->dev, (void *)&netcrc, rx_packet_loc + msdu_size, 4); 1006 atmel_copy_to_host(priv->dev, (void *)&netcrc, rx_packet_loc + msdu_size, 4);
1007 if ((crc ^ 0xffffffff) != netcrc) { 1007 if ((crc ^ 0xffffffff) != netcrc) {
1008 priv->dev->stats.rx_crc_errors++; 1008 priv->dev->stats.rx_crc_errors++;
1009 memset(priv->frag_source, 0xff, 6); 1009 memset(priv->frag_source, 0xff, ETH_ALEN);
1010 } 1010 }
1011 } 1011 }
1012 1012
1013 } else if (priv->frag_no == frag_no && 1013 } else if (priv->frag_no == frag_no &&
1014 priv->frag_seq == seq_no && 1014 priv->frag_seq == seq_no &&
1015 memcmp(priv->frag_source, source, 6) == 0) { 1015 memcmp(priv->frag_source, source, ETH_ALEN) == 0) {
1016 1016
1017 atmel_copy_to_host(priv->dev, &priv->rx_buf[12 + priv->frag_len], 1017 atmel_copy_to_host(priv->dev, &priv->rx_buf[12 + priv->frag_len],
1018 rx_packet_loc, msdu_size); 1018 rx_packet_loc, msdu_size);
@@ -1024,7 +1024,7 @@ static void frag_rx_path(struct atmel_private *priv,
1024 atmel_copy_to_host(priv->dev, (void *)&netcrc, rx_packet_loc + msdu_size, 4); 1024 atmel_copy_to_host(priv->dev, (void *)&netcrc, rx_packet_loc + msdu_size, 4);
1025 if ((crc ^ 0xffffffff) != netcrc) { 1025 if ((crc ^ 0xffffffff) != netcrc) {
1026 priv->dev->stats.rx_crc_errors++; 1026 priv->dev->stats.rx_crc_errors++;
1027 memset(priv->frag_source, 0xff, 6); 1027 memset(priv->frag_source, 0xff, ETH_ALEN);
1028 more_frags = 1; /* don't send broken assembly */ 1028 more_frags = 1; /* don't send broken assembly */
1029 } 1029 }
1030 } 1030 }
@@ -1033,7 +1033,7 @@ static void frag_rx_path(struct atmel_private *priv,
1033 priv->frag_no++; 1033 priv->frag_no++;
1034 1034
1035 if (!more_frags) { /* last one */ 1035 if (!more_frags) { /* last one */
1036 memset(priv->frag_source, 0xff, 6); 1036 memset(priv->frag_source, 0xff, ETH_ALEN);
1037 if (!(skb = dev_alloc_skb(priv->frag_len + 14))) { 1037 if (!(skb = dev_alloc_skb(priv->frag_len + 14))) {
1038 priv->dev->stats.rx_dropped++; 1038 priv->dev->stats.rx_dropped++;
1039 } else { 1039 } else {
@@ -1129,7 +1129,7 @@ static void rx_done_irq(struct atmel_private *priv)
1129 atmel_copy_to_host(priv->dev, (unsigned char *)&priv->rx_buf, rx_packet_loc + 24, msdu_size); 1129 atmel_copy_to_host(priv->dev, (unsigned char *)&priv->rx_buf, rx_packet_loc + 24, msdu_size);
1130 1130
1131 /* we use the same buffer for frag reassembly and control packets */ 1131 /* we use the same buffer for frag reassembly and control packets */
1132 memset(priv->frag_source, 0xff, 6); 1132 memset(priv->frag_source, 0xff, ETH_ALEN);
1133 1133
1134 if (priv->do_rx_crc) { 1134 if (priv->do_rx_crc) {
1135 /* last 4 octets is crc */ 1135 /* last 4 octets is crc */
@@ -1557,7 +1557,7 @@ struct net_device *init_atmel_card(unsigned short irq, unsigned long port,
1557 priv->last_qual = jiffies; 1557 priv->last_qual = jiffies;
1558 priv->last_beacon_timestamp = 0; 1558 priv->last_beacon_timestamp = 0;
1559 memset(priv->frag_source, 0xff, sizeof(priv->frag_source)); 1559 memset(priv->frag_source, 0xff, sizeof(priv->frag_source));
1560 memset(priv->BSSID, 0, 6); 1560 memset(priv->BSSID, 0, ETH_ALEN);
1561 priv->CurrentBSSID[0] = 0xFF; /* Initialize to something invalid.... */ 1561 priv->CurrentBSSID[0] = 0xFF; /* Initialize to something invalid.... */
1562 priv->station_was_associated = 0; 1562 priv->station_was_associated = 0;
1563 1563
@@ -1718,7 +1718,7 @@ static int atmel_get_wap(struct net_device *dev,
1718 char *extra) 1718 char *extra)
1719{ 1719{
1720 struct atmel_private *priv = netdev_priv(dev); 1720 struct atmel_private *priv = netdev_priv(dev);
1721 memcpy(awrq->sa_data, priv->CurrentBSSID, 6); 1721 memcpy(awrq->sa_data, priv->CurrentBSSID, ETH_ALEN);
1722 awrq->sa_family = ARPHRD_ETHER; 1722 awrq->sa_family = ARPHRD_ETHER;
1723 1723
1724 return 0; 1724 return 0;
@@ -2356,7 +2356,7 @@ static int atmel_get_scan(struct net_device *dev,
2356 for (i = 0; i < priv->BSS_list_entries; i++) { 2356 for (i = 0; i < priv->BSS_list_entries; i++) {
2357 iwe.cmd = SIOCGIWAP; 2357 iwe.cmd = SIOCGIWAP;
2358 iwe.u.ap_addr.sa_family = ARPHRD_ETHER; 2358 iwe.u.ap_addr.sa_family = ARPHRD_ETHER;
2359 memcpy(iwe.u.ap_addr.sa_data, priv->BSSinfo[i].BSSID, 6); 2359 memcpy(iwe.u.ap_addr.sa_data, priv->BSSinfo[i].BSSID, ETH_ALEN);
2360 current_ev = iwe_stream_add_event(info, current_ev, 2360 current_ev = iwe_stream_add_event(info, current_ev,
2361 extra + IW_SCAN_MAX_DATA, 2361 extra + IW_SCAN_MAX_DATA,
2362 &iwe, IW_EV_ADDR_LEN); 2362 &iwe, IW_EV_ADDR_LEN);
@@ -2760,7 +2760,7 @@ static void atmel_enter_state(struct atmel_private *priv, int new_state)
2760static void atmel_scan(struct atmel_private *priv, int specific_ssid) 2760static void atmel_scan(struct atmel_private *priv, int specific_ssid)
2761{ 2761{
2762 struct { 2762 struct {
2763 u8 BSSID[6]; 2763 u8 BSSID[ETH_ALEN];
2764 u8 SSID[MAX_SSID_LENGTH]; 2764 u8 SSID[MAX_SSID_LENGTH];
2765 u8 scan_type; 2765 u8 scan_type;
2766 u8 channel; 2766 u8 channel;
@@ -2771,7 +2771,7 @@ static void atmel_scan(struct atmel_private *priv, int specific_ssid)
2771 u8 SSID_size; 2771 u8 SSID_size;
2772 } cmd; 2772 } cmd;
2773 2773
2774 memset(cmd.BSSID, 0xff, 6); 2774 memset(cmd.BSSID, 0xff, ETH_ALEN);
2775 2775
2776 if (priv->fast_scan) { 2776 if (priv->fast_scan) {
2777 cmd.SSID_size = priv->SSID_size; 2777 cmd.SSID_size = priv->SSID_size;
@@ -2816,7 +2816,7 @@ static void join(struct atmel_private *priv, int type)
2816 2816
2817 cmd.SSID_size = priv->SSID_size; 2817 cmd.SSID_size = priv->SSID_size;
2818 memcpy(cmd.SSID, priv->SSID, priv->SSID_size); 2818 memcpy(cmd.SSID, priv->SSID, priv->SSID_size);
2819 memcpy(cmd.BSSID, priv->CurrentBSSID, 6); 2819 memcpy(cmd.BSSID, priv->CurrentBSSID, ETH_ALEN);
2820 cmd.channel = (priv->channel & 0x7f); 2820 cmd.channel = (priv->channel & 0x7f);
2821 cmd.BSS_type = type; 2821 cmd.BSS_type = type;
2822 cmd.timeout = cpu_to_le16(2000); 2822 cmd.timeout = cpu_to_le16(2000);
@@ -2837,7 +2837,7 @@ static void start(struct atmel_private *priv, int type)
2837 2837
2838 cmd.SSID_size = priv->SSID_size; 2838 cmd.SSID_size = priv->SSID_size;
2839 memcpy(cmd.SSID, priv->SSID, priv->SSID_size); 2839 memcpy(cmd.SSID, priv->SSID, priv->SSID_size);
2840 memcpy(cmd.BSSID, priv->BSSID, 6); 2840 memcpy(cmd.BSSID, priv->BSSID, ETH_ALEN);
2841 cmd.BSS_type = type; 2841 cmd.BSS_type = type;
2842 cmd.channel = (priv->channel & 0x7f); 2842 cmd.channel = (priv->channel & 0x7f);
2843 2843
@@ -2883,9 +2883,9 @@ static void send_authentication_request(struct atmel_private *priv, u16 system,
2883 header.frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_AUTH); 2883 header.frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_AUTH);
2884 header.duration_id = cpu_to_le16(0x8000); 2884 header.duration_id = cpu_to_le16(0x8000);
2885 header.seq_ctrl = 0; 2885 header.seq_ctrl = 0;
2886 memcpy(header.addr1, priv->CurrentBSSID, 6); 2886 memcpy(header.addr1, priv->CurrentBSSID, ETH_ALEN);
2887 memcpy(header.addr2, priv->dev->dev_addr, 6); 2887 memcpy(header.addr2, priv->dev->dev_addr, ETH_ALEN);
2888 memcpy(header.addr3, priv->CurrentBSSID, 6); 2888 memcpy(header.addr3, priv->CurrentBSSID, ETH_ALEN);
2889 2889
2890 if (priv->wep_is_on && priv->CurrentAuthentTransactionSeqNum != 1) 2890 if (priv->wep_is_on && priv->CurrentAuthentTransactionSeqNum != 1)
2891 /* no WEP for authentication frames with TrSeqNo 1 */ 2891 /* no WEP for authentication frames with TrSeqNo 1 */
@@ -2916,7 +2916,7 @@ static void send_association_request(struct atmel_private *priv, int is_reassoc)
2916 struct ass_req_format { 2916 struct ass_req_format {
2917 __le16 capability; 2917 __le16 capability;
2918 __le16 listen_interval; 2918 __le16 listen_interval;
2919 u8 ap[6]; /* nothing after here directly accessible */ 2919 u8 ap[ETH_ALEN]; /* nothing after here directly accessible */
2920 u8 ssid_el_id; 2920 u8 ssid_el_id;
2921 u8 ssid_len; 2921 u8 ssid_len;
2922 u8 ssid[MAX_SSID_LENGTH]; 2922 u8 ssid[MAX_SSID_LENGTH];
@@ -2930,9 +2930,9 @@ static void send_association_request(struct atmel_private *priv, int is_reassoc)
2930 header.duration_id = cpu_to_le16(0x8000); 2930 header.duration_id = cpu_to_le16(0x8000);
2931 header.seq_ctrl = 0; 2931 header.seq_ctrl = 0;
2932 2932
2933 memcpy(header.addr1, priv->CurrentBSSID, 6); 2933 memcpy(header.addr1, priv->CurrentBSSID, ETH_ALEN);
2934 memcpy(header.addr2, priv->dev->dev_addr, 6); 2934 memcpy(header.addr2, priv->dev->dev_addr, ETH_ALEN);
2935 memcpy(header.addr3, priv->CurrentBSSID, 6); 2935 memcpy(header.addr3, priv->CurrentBSSID, ETH_ALEN);
2936 2936
2937 body.capability = cpu_to_le16(WLAN_CAPABILITY_ESS); 2937 body.capability = cpu_to_le16(WLAN_CAPABILITY_ESS);
2938 if (priv->wep_is_on) 2938 if (priv->wep_is_on)
@@ -2944,7 +2944,7 @@ static void send_association_request(struct atmel_private *priv, int is_reassoc)
2944 2944
2945 /* current AP address - only in reassoc frame */ 2945 /* current AP address - only in reassoc frame */
2946 if (is_reassoc) { 2946 if (is_reassoc) {
2947 memcpy(body.ap, priv->CurrentBSSID, 6); 2947 memcpy(body.ap, priv->CurrentBSSID, ETH_ALEN);
2948 ssid_el_p = &body.ssid_el_id; 2948 ssid_el_p = &body.ssid_el_id;
2949 bodysize = 18 + priv->SSID_size; 2949 bodysize = 18 + priv->SSID_size;
2950 } else { 2950 } else {
@@ -3021,7 +3021,7 @@ static void store_bss_info(struct atmel_private *priv,
3021 int i, index; 3021 int i, index;
3022 3022
3023 for (index = -1, i = 0; i < priv->BSS_list_entries; i++) 3023 for (index = -1, i = 0; i < priv->BSS_list_entries; i++)
3024 if (memcmp(bss, priv->BSSinfo[i].BSSID, 6) == 0) 3024 if (memcmp(bss, priv->BSSinfo[i].BSSID, ETH_ALEN) == 0)
3025 index = i; 3025 index = i;
3026 3026
3027 /* If we process a probe and an entry from this BSS exists 3027 /* If we process a probe and an entry from this BSS exists
@@ -3032,7 +3032,7 @@ static void store_bss_info(struct atmel_private *priv,
3032 if (priv->BSS_list_entries == MAX_BSS_ENTRIES) 3032 if (priv->BSS_list_entries == MAX_BSS_ENTRIES)
3033 return; 3033 return;
3034 index = priv->BSS_list_entries++; 3034 index = priv->BSS_list_entries++;
3035 memcpy(priv->BSSinfo[index].BSSID, bss, 6); 3035 memcpy(priv->BSSinfo[index].BSSID, bss, ETH_ALEN);
3036 priv->BSSinfo[index].RSSI = rssi; 3036 priv->BSSinfo[index].RSSI = rssi;
3037 } else { 3037 } else {
3038 if (rssi > priv->BSSinfo[index].RSSI) 3038 if (rssi > priv->BSSinfo[index].RSSI)
@@ -3212,7 +3212,7 @@ static void associate(struct atmel_private *priv, u16 frame_len, u16 subtype)
3212 if (subtype == IEEE80211_STYPE_REASSOC_RESP && 3212 if (subtype == IEEE80211_STYPE_REASSOC_RESP &&
3213 status != WLAN_STATUS_ASSOC_DENIED_RATES && 3213 status != WLAN_STATUS_ASSOC_DENIED_RATES &&
3214 status != WLAN_STATUS_CAPS_UNSUPPORTED && 3214 status != WLAN_STATUS_CAPS_UNSUPPORTED &&
3215 priv->AssociationRequestRetryCnt < MAX_ASSOCIATION_RETRIES) { 3215 priv->ReAssociationRequestRetryCnt < MAX_ASSOCIATION_RETRIES) {
3216 mod_timer(&priv->management_timer, jiffies + MGMT_JIFFIES); 3216 mod_timer(&priv->management_timer, jiffies + MGMT_JIFFIES);
3217 priv->ReAssociationRequestRetryCnt++; 3217 priv->ReAssociationRequestRetryCnt++;
3218 send_association_request(priv, 1); 3218 send_association_request(priv, 1);
@@ -3235,7 +3235,7 @@ static void atmel_join_bss(struct atmel_private *priv, int bss_index)
3235{ 3235{
3236 struct bss_info *bss = &priv->BSSinfo[bss_index]; 3236 struct bss_info *bss = &priv->BSSinfo[bss_index];
3237 3237
3238 memcpy(priv->CurrentBSSID, bss->BSSID, 6); 3238 memcpy(priv->CurrentBSSID, bss->BSSID, ETH_ALEN);
3239 memcpy(priv->SSID, bss->SSID, priv->SSID_size = bss->SSIDsize); 3239 memcpy(priv->SSID, bss->SSID, priv->SSID_size = bss->SSIDsize);
3240 3240
3241 /* The WPA stuff cares about the current AP address */ 3241 /* The WPA stuff cares about the current AP address */
@@ -3767,7 +3767,7 @@ static int probe_atmel_card(struct net_device *dev)
3767 0x00, 0x04, 0x25, 0x00, 0x00, 0x00 3767 0x00, 0x04, 0x25, 0x00, 0x00, 0x00
3768 }; 3768 };
3769 printk(KERN_ALERT "%s: *** Invalid MAC address. UPGRADE Firmware ****\n", dev->name); 3769 printk(KERN_ALERT "%s: *** Invalid MAC address. UPGRADE Firmware ****\n", dev->name);
3770 memcpy(dev->dev_addr, default_mac, 6); 3770 memcpy(dev->dev_addr, default_mac, ETH_ALEN);
3771 } 3771 }
3772 } 3772 }
3773 3773
@@ -3819,7 +3819,7 @@ static void build_wpa_mib(struct atmel_private *priv)
3819 3819
3820 struct { /* NB this is matched to the hardware, don't change. */ 3820 struct { /* NB this is matched to the hardware, don't change. */
3821 u8 cipher_default_key_value[MAX_ENCRYPTION_KEYS][MAX_ENCRYPTION_KEY_SIZE]; 3821 u8 cipher_default_key_value[MAX_ENCRYPTION_KEYS][MAX_ENCRYPTION_KEY_SIZE];
3822 u8 receiver_address[6]; 3822 u8 receiver_address[ETH_ALEN];
3823 u8 wep_is_on; 3823 u8 wep_is_on;
3824 u8 default_key; /* 0..3 */ 3824 u8 default_key; /* 0..3 */
3825 u8 group_key; 3825 u8 group_key;
@@ -3837,7 +3837,7 @@ static void build_wpa_mib(struct atmel_private *priv)
3837 3837
3838 mib.wep_is_on = priv->wep_is_on; 3838 mib.wep_is_on = priv->wep_is_on;
3839 mib.exclude_unencrypted = priv->exclude_unencrypted; 3839 mib.exclude_unencrypted = priv->exclude_unencrypted;
3840 memcpy(mib.receiver_address, priv->CurrentBSSID, 6); 3840 memcpy(mib.receiver_address, priv->CurrentBSSID, ETH_ALEN);
3841 3841
3842 /* zero all the keys before adding in valid ones. */ 3842 /* zero all the keys before adding in valid ones. */
3843 memset(mib.cipher_default_key_value, 0, sizeof(mib.cipher_default_key_value)); 3843 memset(mib.cipher_default_key_value, 0, sizeof(mib.cipher_default_key_value));