Lines Matching refs:key_index
1012 int key_index, index_specified; in gelic_wl_set_encode() local
1017 key_index = enc->flags & IW_ENCODE_INDEX; in gelic_wl_set_encode()
1019 pr_debug("%s: key_index = %d\n", __func__, key_index); in gelic_wl_set_encode()
1023 if (GELIC_WEP_KEYS < key_index) in gelic_wl_set_encode()
1027 if (key_index) { in gelic_wl_set_encode()
1029 key_index--; in gelic_wl_set_encode()
1032 key_index = wl->current_key; in gelic_wl_set_encode()
1038 wl->current_key = key_index; in gelic_wl_set_encode()
1051 clear_bit(key_index, &wl->key_enabled); in gelic_wl_set_encode()
1065 wl->key_len[key_index] = enc->length; in gelic_wl_set_encode()
1066 memcpy(wl->key[key_index], extra, enc->length); in gelic_wl_set_encode()
1067 set_bit(key_index, &wl->key_enabled); in gelic_wl_set_encode()
1085 unsigned int key_index; in gelic_wl_get_encode() local
1089 key_index = enc->flags & IW_ENCODE_INDEX; in gelic_wl_get_encode()
1092 if (GELIC_WEP_KEYS < key_index) in gelic_wl_get_encode()
1096 if (key_index) in gelic_wl_get_encode()
1097 key_index--; in gelic_wl_get_encode()
1099 key_index = wl->current_key; in gelic_wl_get_encode()
1113 if (test_bit(key_index, &wl->key_enabled)) { in gelic_wl_get_encode()
1114 if (enc->length < wl->key_len[key_index]) { in gelic_wl_get_encode()
1118 enc->length = wl->key_len[key_index]; in gelic_wl_get_encode()
1119 memcpy(extra, wl->key[key_index], wl->key_len[key_index]); in gelic_wl_get_encode()
1124 enc->flags |= key_index + 1; in gelic_wl_get_encode()
1196 int key_index; in gelic_wl_set_encodeext() local
1202 key_index = enc->flags & IW_ENCODE_INDEX; in gelic_wl_set_encodeext()
1204 pr_debug("%s: key_index = %d\n", __func__, key_index); in gelic_wl_set_encodeext()
1210 if (GELIC_WEP_KEYS < key_index) in gelic_wl_set_encodeext()
1214 if (key_index) in gelic_wl_set_encodeext()
1215 key_index--; in gelic_wl_set_encodeext()
1217 key_index = wl->current_key; in gelic_wl_set_encodeext()
1222 __func__, key_index); in gelic_wl_set_encodeext()
1223 wl->current_key = key_index; in gelic_wl_set_encodeext()
1250 wl->key_len[key_index] = ext->key_len; in gelic_wl_set_encodeext()
1251 memset(wl->key[key_index], 0, IW_ENCODING_TOKEN_MAX); in gelic_wl_set_encodeext()
1252 memcpy(wl->key[key_index], ext->key, ext->key_len); in gelic_wl_set_encodeext()
1253 set_bit(key_index, &wl->key_enabled); in gelic_wl_set_encodeext()
1284 int key_index; in gelic_wl_get_encodeext() local
1293 key_index = enc->flags & IW_ENCODE_INDEX; in gelic_wl_get_encodeext()
1295 pr_debug("%s: key_index = %d\n", __func__, key_index); in gelic_wl_get_encodeext()
1299 if (GELIC_WEP_KEYS < key_index) in gelic_wl_get_encodeext()
1303 if (key_index) in gelic_wl_get_encodeext()
1304 key_index--; in gelic_wl_get_encodeext()
1306 key_index = wl->current_key; in gelic_wl_get_encodeext()
1330 if (max_key_len < wl->key_len[key_index]) { in gelic_wl_get_encodeext()
1334 if (test_bit(key_index, &wl->key_enabled)) in gelic_wl_get_encodeext()
1335 memcpy(ext->key, wl->key[key_index], in gelic_wl_get_encodeext()
1336 wl->key_len[key_index]); in gelic_wl_get_encodeext()
1339 __func__, key_index); in gelic_wl_get_encodeext()