Lines Matching refs:wep

469 	} wep;  member
777 if (priv->wep.wep_is_on) in start_tx()
1024 if (!priv->wep.wep_is_on || !(frame_ctl & IEEE802_11_FCTL_WEP)) { in rx_done_irq()
1039 if (priv->do_rx_crc && (!priv->wep.wep_is_on || !(frame_ctl & IEEE802_11_FCTL_WEP))) { in rx_done_irq()
1385 priv->wep.wep_is_on = 0; in init_atmel_card()
1386 priv->wep.default_key = 0; in init_atmel_card()
1387 priv->wep.encryption_level = 0; in init_atmel_card()
1578 int current_index = priv->wep.default_key; in atmel_set_encode()
1587 priv->wep.default_key = index; in atmel_set_encode()
1600 memset(priv->wep.wep_keys[index], 0, 13); in atmel_set_encode()
1602 memcpy(priv->wep.wep_keys[index], extra, dwrq->length); in atmel_set_encode()
1609 priv->wep.wep_is_on = 1; in atmel_set_encode()
1610 priv->wep.exclude_unencrypted = 1; in atmel_set_encode()
1612 priv->wep.encryption_level = 2; in atmel_set_encode()
1614 priv->wep.encryption_level = 1; in atmel_set_encode()
1620 priv->wep.default_key = index; in atmel_set_encode()
1629 priv->wep.wep_is_on = 0; in atmel_set_encode()
1630 priv->wep.encryption_level = 0; in atmel_set_encode()
1632 priv->wep.wep_is_on = 1; in atmel_set_encode()
1633 if (priv->wep_key_len[priv->wep.default_key] > 5) in atmel_set_encode()
1634 priv->wep.encryption_level = 2; in atmel_set_encode()
1636 priv->wep.encryption_level = 1; in atmel_set_encode()
1639 priv->wep.exclude_unencrypted = 1; in atmel_set_encode()
1641 priv->wep.exclude_unencrypted = 0; in atmel_set_encode()
1655 if (!priv->wep.wep_is_on) in atmel_get_encode()
1657 else if (priv->wep.exclude_unencrypted) in atmel_get_encode()
1664 index = priv->wep.default_key; in atmel_get_encode()
1672 memcpy(extra, priv->wep.wep_keys[index], dwrq->length); in atmel_get_encode()
2125 if (!priv->wep.wep_is_on && priv->BSSinfo[i].UsingWEP) { in atmel_set_wap()
2127 } else if (priv->wep.wep_is_on && !priv->BSSinfo[i].UsingWEP) { in atmel_set_wap()
2449 if (priv->wep.wep_is_on) { in send_authentication_request()
2500 if (priv->wep.wep_is_on) in send_association_request()
2551 ((!priv->wep.wep_is_on && !priv->BSSinfo[i].UsingWEP) || in retrieve_bss()
2552 (priv->wep.wep_is_on && priv->BSSinfo[i].UsingWEP)) && in retrieve_bss()
2626 if (status == C80211_MGMT_SC_Success && !priv->wep.wep_is_on) { in authenticate()
2639 if (status == C80211_MGMT_SC_Success && priv->wep.wep_is_on) { in authenticate()
2782 if (!priv->wep.wep_is_on && bss->UsingWEP) { in atmel_join_bss()
2788 if (priv->wep.wep_is_on && !bss->UsingWEP) { in atmel_join_bss()
3443 atmel_set_mib8(priv, Mac_Mgmt_Mib_Type, MAC_MGMT_MIB_CUR_PRIVACY_POS, priv->wep.wep_is_on); in reset_atmel_card()
3444 atmel_set_mib(priv, Mac_Wep_Mib_Type, 0, (u8 *)&priv->wep, sizeof(priv->wep)); in reset_atmel_card()