• Home
  • Raw
  • Download

Lines Matching refs:ext

524 	struct iw_encode_ext *ext = (struct iw_encode_ext *)extra;  in libipw_wx_set_encodeext()  local
543 if (ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY) { in libipw_wx_set_encodeext()
548 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) in libipw_wx_set_encodeext()
558 ext->alg == IW_ENCODE_ALG_NONE) { in libipw_wx_set_encodeext()
583 switch (ext->alg) { in libipw_wx_set_encodeext()
598 dev->name, ext->alg); in libipw_wx_set_encodeext()
610 dev->name, ext->alg); in libipw_wx_set_encodeext()
636 if (ext->key_len > 0 && (*crypt)->ops->set_key && in libipw_wx_set_encodeext()
637 (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, in libipw_wx_set_encodeext()
645 if (ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY) { in libipw_wx_set_encodeext()
651 if (ext->alg != IW_ENCODE_ALG_NONE) { in libipw_wx_set_encodeext()
652 memcpy(sec.keys[idx], ext->key, ext->key_len); in libipw_wx_set_encodeext()
653 sec.key_sizes[idx] = ext->key_len; in libipw_wx_set_encodeext()
655 if (ext->alg == IW_ENCODE_ALG_WEP) { in libipw_wx_set_encodeext()
659 } else if (ext->alg == IW_ENCODE_ALG_TKIP) { in libipw_wx_set_encodeext()
663 } else if (ext->alg == IW_ENCODE_ALG_CCMP) { in libipw_wx_set_encodeext()
684 struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; in libipw_wx_get_encodeext() local
688 max_key_len = encoding->length - sizeof(*ext); in libipw_wx_get_encodeext()
700 if (!(ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY) && in libipw_wx_get_encodeext()
701 ext->alg != IW_ENCODE_ALG_WEP) in libipw_wx_get_encodeext()
706 memset(ext, 0, sizeof(*ext)); in libipw_wx_get_encodeext()
709 ext->alg = IW_ENCODE_ALG_NONE; in libipw_wx_get_encodeext()
710 ext->key_len = 0; in libipw_wx_get_encodeext()
714 ext->alg = IW_ENCODE_ALG_WEP; in libipw_wx_get_encodeext()
716 ext->alg = IW_ENCODE_ALG_TKIP; in libipw_wx_get_encodeext()
718 ext->alg = IW_ENCODE_ALG_CCMP; in libipw_wx_get_encodeext()
722 ext->key_len = sec->key_sizes[idx]; in libipw_wx_get_encodeext()
723 memcpy(ext->key, sec->keys[idx], ext->key_len); in libipw_wx_get_encodeext()
725 if (ext->key_len && in libipw_wx_get_encodeext()
726 (ext->alg == IW_ENCODE_ALG_TKIP || in libipw_wx_get_encodeext()
727 ext->alg == IW_ENCODE_ALG_CCMP)) in libipw_wx_get_encodeext()
728 ext->ext_flags |= IW_ENCODE_EXT_TX_SEQ_VALID; in libipw_wx_get_encodeext()