Lines Matching refs:ext

508 	struct iw_encode_ext *ext = (struct iw_encode_ext *)extra;  in libipw_wx_set_encodeext()  local
527 if (ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY) { in libipw_wx_set_encodeext()
532 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) in libipw_wx_set_encodeext()
542 ext->alg == IW_ENCODE_ALG_NONE) { in libipw_wx_set_encodeext()
567 switch (ext->alg) { in libipw_wx_set_encodeext()
582 dev->name, ext->alg); in libipw_wx_set_encodeext()
594 dev->name, ext->alg); in libipw_wx_set_encodeext()
620 if (ext->key_len > 0 && (*crypt)->ops->set_key && in libipw_wx_set_encodeext()
621 (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, in libipw_wx_set_encodeext()
629 if (ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY) { in libipw_wx_set_encodeext()
635 if (ext->alg != IW_ENCODE_ALG_NONE) { in libipw_wx_set_encodeext()
636 int key_len = clamp_val(ext->key_len, 0, SCM_KEY_LEN); in libipw_wx_set_encodeext()
638 memcpy(sec.keys[idx], ext->key, key_len); in libipw_wx_set_encodeext()
641 if (ext->alg == IW_ENCODE_ALG_WEP) { in libipw_wx_set_encodeext()
645 } else if (ext->alg == IW_ENCODE_ALG_TKIP) { in libipw_wx_set_encodeext()
649 } else if (ext->alg == IW_ENCODE_ALG_CCMP) { in libipw_wx_set_encodeext()
670 struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; in libipw_wx_get_encodeext() local
674 max_key_len = encoding->length - sizeof(*ext); in libipw_wx_get_encodeext()
686 if (!(ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY) && in libipw_wx_get_encodeext()
687 ext->alg != IW_ENCODE_ALG_WEP) in libipw_wx_get_encodeext()
692 memset(ext, 0, sizeof(*ext)); in libipw_wx_get_encodeext()
695 ext->alg = IW_ENCODE_ALG_NONE; in libipw_wx_get_encodeext()
696 ext->key_len = 0; in libipw_wx_get_encodeext()
700 ext->alg = IW_ENCODE_ALG_WEP; in libipw_wx_get_encodeext()
702 ext->alg = IW_ENCODE_ALG_TKIP; in libipw_wx_get_encodeext()
704 ext->alg = IW_ENCODE_ALG_CCMP; in libipw_wx_get_encodeext()
708 ext->key_len = sec->key_sizes[idx]; in libipw_wx_get_encodeext()
709 memcpy(ext->key, sec->keys[idx], ext->key_len); in libipw_wx_get_encodeext()
711 if (ext->key_len && in libipw_wx_get_encodeext()
712 (ext->alg == IW_ENCODE_ALG_TKIP || in libipw_wx_get_encodeext()
713 ext->alg == IW_ENCODE_ALG_CCMP)) in libipw_wx_get_encodeext()
714 ext->ext_flags |= IW_ENCODE_EXT_TX_SEQ_VALID; in libipw_wx_get_encodeext()