wkr 1764 drivers/net/wireless/cisco/airo.c static int readWepKeyRid(struct airo_info *ai, WepKeyRid *wkr, int temp, int lock) wkr 1767 drivers/net/wireless/cisco/airo.c wkr, sizeof(*wkr), lock); wkr 1770 drivers/net/wireless/cisco/airo.c static int writeWepKeyRid(struct airo_info *ai, WepKeyRid *wkr, int perm, int lock) wkr 1773 drivers/net/wireless/cisco/airo.c rc = PC4500_writerid(ai, RID_WEP_TEMP, wkr, sizeof(*wkr), lock); wkr 1777 drivers/net/wireless/cisco/airo.c rc = PC4500_writerid(ai, RID_WEP_PERM, wkr, sizeof(*wkr), lock); wkr 3812 drivers/net/wireless/cisco/airo.c WepKeyRid wkr; wkr 3932 drivers/net/wireless/cisco/airo.c rc = readWepKeyRid(ai, &wkr, 1, lock); wkr 3934 drivers/net/wireless/cisco/airo.c lastindex = wkr.kindex; wkr 3935 drivers/net/wireless/cisco/airo.c if (wkr.kindex == cpu_to_le16(0xffff)) { wkr 3936 drivers/net/wireless/cisco/airo.c ai->defindex = wkr.mac[0]; wkr 3938 drivers/net/wireless/cisco/airo.c rc = readWepKeyRid(ai, &wkr, 0, lock); wkr 3939 drivers/net/wireless/cisco/airo.c } while(lastindex != wkr.kindex); wkr 5163 drivers/net/wireless/cisco/airo.c WepKeyRid wkr; wkr 5167 drivers/net/wireless/cisco/airo.c rc = readWepKeyRid(ai, &wkr, 1, 1); wkr 5171 drivers/net/wireless/cisco/airo.c lastindex = wkr.kindex; wkr 5172 drivers/net/wireless/cisco/airo.c if (le16_to_cpu(wkr.kindex) == index) { wkr 5173 drivers/net/wireless/cisco/airo.c int klen = min_t(int, buflen, le16_to_cpu(wkr.klen)); wkr 5174 drivers/net/wireless/cisco/airo.c memcpy(buf, wkr.key, klen); wkr 5177 drivers/net/wireless/cisco/airo.c rc = readWepKeyRid(ai, &wkr, 0, 1); wkr 5180 drivers/net/wireless/cisco/airo.c } while (lastindex != wkr.kindex); wkr 5186 drivers/net/wireless/cisco/airo.c WepKeyRid wkr; wkr 5190 drivers/net/wireless/cisco/airo.c rc = readWepKeyRid(ai, &wkr, 1, 1); wkr 5194 drivers/net/wireless/cisco/airo.c lastindex = wkr.kindex; wkr 5195 drivers/net/wireless/cisco/airo.c if (wkr.kindex == cpu_to_le16(0xffff)) wkr 5196 drivers/net/wireless/cisco/airo.c return wkr.mac[0]; wkr 5197 drivers/net/wireless/cisco/airo.c rc = readWepKeyRid(ai, &wkr, 0, 1); wkr 5200 drivers/net/wireless/cisco/airo.c } while (lastindex != wkr.kindex); wkr 5208 drivers/net/wireless/cisco/airo.c WepKeyRid wkr; wkr 5214 drivers/net/wireless/cisco/airo.c memset(&wkr, 0, sizeof(wkr)); wkr 5215 drivers/net/wireless/cisco/airo.c wkr.len = cpu_to_le16(sizeof(wkr)); wkr 5216 drivers/net/wireless/cisco/airo.c wkr.kindex = cpu_to_le16(index); wkr 5217 drivers/net/wireless/cisco/airo.c wkr.klen = cpu_to_le16(keylen); wkr 5218 drivers/net/wireless/cisco/airo.c memcpy(wkr.key, key, keylen); wkr 5219 drivers/net/wireless/cisco/airo.c memcpy(wkr.mac, macaddr, ETH_ALEN); wkr 5222 drivers/net/wireless/cisco/airo.c rc = writeWepKeyRid(ai, &wkr, perm, lock); wkr 5229 drivers/net/wireless/cisco/airo.c WepKeyRid wkr; wkr 5232 drivers/net/wireless/cisco/airo.c memset(&wkr, 0, sizeof(wkr)); wkr 5233 drivers/net/wireless/cisco/airo.c wkr.len = cpu_to_le16(sizeof(wkr)); wkr 5234 drivers/net/wireless/cisco/airo.c wkr.kindex = cpu_to_le16(0xffff); wkr 5235 drivers/net/wireless/cisco/airo.c wkr.mac[0] = (char)index; wkr 5242 drivers/net/wireless/cisco/airo.c rc = writeWepKeyRid(ai, &wkr, perm, lock); wkr 5305 drivers/net/wireless/cisco/airo.c WepKeyRid wkr; wkr 5312 drivers/net/wireless/cisco/airo.c memset(&wkr, 0, sizeof(wkr)); wkr 5329 drivers/net/wireless/cisco/airo.c rc = readWepKeyRid(ai, &wkr, 1, 1); wkr 5331 drivers/net/wireless/cisco/airo.c lastindex = wkr.kindex; wkr 5332 drivers/net/wireless/cisco/airo.c if (wkr.kindex == cpu_to_le16(0xffff)) { wkr 5334 drivers/net/wireless/cisco/airo.c (int)wkr.mac[0]); wkr 5337 drivers/net/wireless/cisco/airo.c le16_to_cpu(wkr.kindex), wkr 5338 drivers/net/wireless/cisco/airo.c le16_to_cpu(wkr.klen)); wkr 5340 drivers/net/wireless/cisco/airo.c readWepKeyRid(ai, &wkr, 0, 1); wkr 5341 drivers/net/wireless/cisco/airo.c } while((lastindex != wkr.kindex) && (j < 180-30));