Lines Matching defs:index

263 		 "A value of 2 will try using the key at index 0 and index 1.");
775 __le16 index; /* First is 0 and 0xffff means end of list */
1564 u32 seq, index;
1596 index = 1 << seq; //Get an index number
1598 if (!(context->rx & index)) {
1601 context->rx |= index;
3031 if ((rc) || (bss.index == cpu_to_le16(0xffff))) {
3038 while ((!rc) && (bss.index != cpu_to_le16(0xffff))) {
3449 int i, index = -1;
3475 index = i;
3478 if (index != -1) {
3480 get_tx_error(ai, index);
3485 ai->fids[index] &= 0xffff;
3486 if (index < MAX_FIDS / 2) {
4900 int v, i = 0, k = 0; /* i is index into line,
4901 k is index to rates */
5193 /* Returns the WEP key at the specified index, or -1 if that key does
5196 static int get_wep_key(struct airo_info *ai, u16 index, char *buf, u16 buflen)
5207 if (le16_to_cpu(wkr.kindex) == index) {
5239 static int set_wep_key(struct airo_info *ai, u16 index, const u8 *key,
5251 wkr.kindex = cpu_to_le16(index);
5262 static int set_wep_tx_idx(struct airo_info *ai, u16 index, int perm, int lock)
5270 wkr.mac[0] = (char)index;
5273 ai->defindex = (char)index;
5291 u16 index = 0;
5301 index = data->wbuffer[0] - '0';
5303 rc = set_wep_tx_idx(ai, index, 1, 1);
5306 "WEP transmit index to %d: %d.",
5307 index, rc);
5313 airo_print_err(ai->dev->name, "WepKey passed invalid key index");
5338 rc = set_wep_key(ai, index, key, i/3, 1, 1);
5340 airo_print_err(ai->dev->name, "failed to set WEP key at index "
5341 "%d: %d.", index, rc);
5528 while (rc == 0 && BSSList_rid.index != cpu_to_le16(0xffff)) {
5921 unsigned index = (dwrq->flags & IW_ENCODE_INDEX) - 1;
5927 /* Check if index is valid */
5928 if (index >= ARRAY_SIZE(SSID_rid.ssids))
5932 memset(SSID_rid.ssids[index].ssid, 0,
5933 sizeof(SSID_rid.ssids[index].ssid));
5934 memcpy(SSID_rid.ssids[index].ssid, extra, dwrq->length);
5935 SSID_rid.ssids[index].len = cpu_to_le16(dwrq->length);
6091 /* Setting by rate index */
6347 static inline int valid_index(struct airo_info *ai, int index)
6349 return (index >= 0) && (index <= ai->max_wep_idx);
6379 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1;
6391 /* Check the index (none -> use current) */
6392 if (!valid_index(local, index))
6393 index = current_index;
6407 rc = set_wep_key(local, index, key.key, key.len, perm, 1);
6410 " WEP key at index %d: %d.",
6411 index, rc);
6418 if ((index == current_index) && (key.len > 0) &&
6422 /* Do we want to just set the transmit key index ? */
6423 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1;
6424 if (valid_index(local, index)) {
6425 rc = set_wep_tx_idx(local, index, perm, 1);
6428 " WEP transmit index to %d: %d.",
6429 index, rc);
6461 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1;
6487 /* Which key do we want ? -1 -> tx index */
6488 if (!valid_index(local, index)) {
6489 index = get_wep_tx_idx(local);
6490 if (index < 0)
6491 index = 0;
6493 dwrq->flags |= index + 1;
6496 wep_key_len = get_wep_key(local, index, &buf[0], sizeof(buf));
6529 /* Determine and validate the key index */
6545 /* Only set transmit key index here, actual
6551 "WEP transmit index to %d: %d.",
6583 "failed to set WEP transmit index to %d: %d.",
6591 "failed to set WEP key at index %d: %d.",
6950 range->freq[k].i = i + 1; /* List index */
7219 if (BSSList.index == cpu_to_le16(0xffff))