range->enc_capa = IW_ENC_CAPA_WPA;
range->enc_capa |= IW_ENC_CAPA_CIPHER_TKIP;
range->enc_capa |= IW_ENC_CAPA_CIPHER_CCMP;
-#ifdef BCMWPA2
range->enc_capa |= IW_ENC_CAPA_WPA2;
-#endif
IW_EVENT_CAPA_SET_KERNEL(range->event_capa);
IW_EVENT_CAPA_SET(range->event_capa, SIOCGIWAP);
IW_EVENT_CAPA_SET(range->event_capa, SIOCGIWSCAN);
IW_EVENT_CAPA_SET(range->event_capa, IWEVTXDROP);
IW_EVENT_CAPA_SET(range->event_capa, IWEVMICHAELMICFAILURE);
-#ifdef BCMWPA2
IW_EVENT_CAPA_SET(range->event_capa, IWEVPMKIDCAND);
-#endif
#endif /* WIRELESS_EXT > 17 */
kfree(channels);
u8 *ptr = ((u8 *) bi) + sizeof(wl_bss_info_t);
int ptr_len = bi->ie_length;
-#ifdef BCMWPA2
ie = bcm_parse_tlvs(ptr, ptr_len, DOT11_MNG_RSN_ID);
if (ie) {
iwe.cmd = IWEVGENIE;
(char *)ie);
}
ptr = ((u8 *) bi) + sizeof(wl_bss_info_t);
-#endif
while ((ie = bcm_parse_tlvs(ptr, ptr_len, DOT11_MNG_WPA_ID))) {
if (ie_is_wps_ie(((u8 **)&ie), &ptr, &ptr_len)) {
}
#if WIRELESS_EXT > 17
-#ifdef BCMWPA2
struct {
pmkid_list_t pmkids;
pmkid_t foo[MAXPMKID - 1];
sizeof(pmkid_list));
return ret;
}
-#endif /* BCMWPA2 */
#endif /* WIRELESS_EXT > 17 */
static int
val = WPA_AUTH_DISABLED;
else if (paramval & (IW_AUTH_WPA_VERSION_WPA))
val = WPA_AUTH_PSK | WPA_AUTH_UNSPECIFIED;
-#ifdef BCMWPA2
else if (paramval & IW_AUTH_WPA_VERSION_WPA2)
val = WPA2_AUTH_PSK | WPA2_AUTH_UNSPECIFIED;
-#endif
WL_INFORM(("%s: %d: setting wpa_auth to 0x%0x\n", __func__,
__LINE__, val));
error = dev_wlc_intvar_set(dev, "wpa_auth", val);
else
val = WPA_AUTH_UNSPECIFIED;
}
-#ifdef BCMWPA2
else if (val & (WPA2_AUTH_PSK | WPA2_AUTH_UNSPECIFIED)) {
if (paramval & IW_AUTH_KEY_MGMT_PSK)
val = WPA2_AUTH_PSK;
else
val = WPA2_AUTH_UNSPECIFIED;
}
-#endif
WL_INFORM(("%s: %d: setting wpa_auth to %d\n", __func__,
__LINE__, val));
error = dev_wlc_intvar_set(dev, "wpa_auth", val);
return 0;
}
-#ifdef BCMWPA2
#define VAL_PSK(_val) (((_val) & WPA_AUTH_PSK) || ((_val) & WPA2_AUTH_PSK))
-#else
-#define VAL_PSK(_val) (((_val) & WPA_AUTH_PSK))
-#endif
static int
wl_iw_get_wpaauth(struct net_device *dev,
paramval = IW_AUTH_WPA_VERSION_DISABLED;
else if (val & (WPA_AUTH_PSK | WPA_AUTH_UNSPECIFIED))
paramval = IW_AUTH_WPA_VERSION_WPA;
-#ifdef BCMWPA2
else if (val & (WPA2_AUTH_PSK | WPA2_AUTH_UNSPECIFIED))
paramval = IW_AUTH_WPA_VERSION_WPA2;
-#endif
break;
case IW_AUTH_CIPHER_PAIRWISE:
case IW_AUTH_CIPHER_GROUP:
(iw_handler) wl_iw_get_wpaauth,
(iw_handler) wl_iw_set_encodeext,
(iw_handler) wl_iw_get_encodeext,
-#ifdef BCMWPA2
(iw_handler) wl_iw_set_pmksa,
-#endif
#endif /* WIRELESS_EXT > 17 */
};
break;
}
-#ifdef BCMWPA2
case WLC_E_PMKID_CACHE:
{
if (data) {
}
return;
}
-#endif /* BCMWPA2 */
#endif /* WIRELESS_EXT > 17 */
case WLC_E_SCAN_COMPLETE: