Lines Matching refs:wkr
1768 static int readWepKeyRid(struct airo_info *ai, WepKeyRid *wkr, int temp, int lock) in readWepKeyRid() argument
1771 wkr, sizeof(*wkr), lock); in readWepKeyRid()
1774 static int writeWepKeyRid(struct airo_info *ai, WepKeyRid *wkr, int perm, int lock) in writeWepKeyRid() argument
1777 rc = PC4500_writerid(ai, RID_WEP_TEMP, wkr, sizeof(*wkr), lock); in writeWepKeyRid()
1781 rc = PC4500_writerid(ai, RID_WEP_PERM, wkr, sizeof(*wkr), lock); in writeWepKeyRid()
3835 WepKeyRid wkr; in setup_card() local
3955 rc = readWepKeyRid(ai, &wkr, 1, lock); in setup_card()
3957 lastindex = wkr.kindex; in setup_card()
3958 if (wkr.kindex == cpu_to_le16(0xffff)) { in setup_card()
3959 ai->defindex = wkr.mac[0]; in setup_card()
3961 rc = readWepKeyRid(ai, &wkr, 0, lock); in setup_card()
3962 } while (lastindex != wkr.kindex); in setup_card()
5185 WepKeyRid wkr; in get_wep_key() local
5189 rc = readWepKeyRid(ai, &wkr, 1, 1); in get_wep_key()
5193 lastindex = wkr.kindex; in get_wep_key()
5194 if (le16_to_cpu(wkr.kindex) == index) { in get_wep_key()
5195 int klen = min_t(int, buflen, le16_to_cpu(wkr.klen)); in get_wep_key()
5196 memcpy(buf, wkr.key, klen); in get_wep_key()
5199 rc = readWepKeyRid(ai, &wkr, 0, 1); in get_wep_key()
5202 } while (lastindex != wkr.kindex); in get_wep_key()
5208 WepKeyRid wkr; in get_wep_tx_idx() local
5212 rc = readWepKeyRid(ai, &wkr, 1, 1); in get_wep_tx_idx()
5216 lastindex = wkr.kindex; in get_wep_tx_idx()
5217 if (wkr.kindex == cpu_to_le16(0xffff)) in get_wep_tx_idx()
5218 return wkr.mac[0]; in get_wep_tx_idx()
5219 rc = readWepKeyRid(ai, &wkr, 0, 1); in get_wep_tx_idx()
5222 } while (lastindex != wkr.kindex); in get_wep_tx_idx()
5230 WepKeyRid wkr; in set_wep_key() local
5236 memset(&wkr, 0, sizeof(wkr)); in set_wep_key()
5237 wkr.len = cpu_to_le16(sizeof(wkr)); in set_wep_key()
5238 wkr.kindex = cpu_to_le16(index); in set_wep_key()
5239 wkr.klen = cpu_to_le16(keylen); in set_wep_key()
5240 memcpy(wkr.key, key, keylen); in set_wep_key()
5241 memcpy(wkr.mac, macaddr, ETH_ALEN); in set_wep_key()
5244 rc = writeWepKeyRid(ai, &wkr, perm, lock); in set_wep_key()
5251 WepKeyRid wkr; in set_wep_tx_idx() local
5254 memset(&wkr, 0, sizeof(wkr)); in set_wep_tx_idx()
5255 wkr.len = cpu_to_le16(sizeof(wkr)); in set_wep_tx_idx()
5256 wkr.kindex = cpu_to_le16(0xffff); in set_wep_tx_idx()
5257 wkr.mac[0] = (char)index; in set_wep_tx_idx()
5264 rc = writeWepKeyRid(ai, &wkr, perm, lock); in set_wep_tx_idx()
5328 WepKeyRid wkr; in proc_wepkey_open() local
5335 memset(&wkr, 0, sizeof(wkr)); in proc_wepkey_open()
5352 rc = readWepKeyRid(ai, &wkr, 1, 1); in proc_wepkey_open()
5354 lastindex = wkr.kindex; in proc_wepkey_open()
5355 if (wkr.kindex == cpu_to_le16(0xffff)) { in proc_wepkey_open()
5357 (int)wkr.mac[0]); in proc_wepkey_open()
5360 le16_to_cpu(wkr.kindex), in proc_wepkey_open()
5361 le16_to_cpu(wkr.klen)); in proc_wepkey_open()
5363 readWepKeyRid(ai, &wkr, 0, 1); in proc_wepkey_open()
5364 } while ((lastindex != wkr.kindex) && (j < 180-30)); in proc_wepkey_open()