Lines Matching refs:wkr

1765 static int readWepKeyRid(struct airo_info *ai, WepKeyRid *wkr, int temp, int lock)  in readWepKeyRid()  argument
1768 wkr, sizeof(*wkr), lock); in readWepKeyRid()
1771 static int writeWepKeyRid(struct airo_info *ai, WepKeyRid *wkr, int perm, int lock) in writeWepKeyRid() argument
1774 rc = PC4500_writerid(ai, RID_WEP_TEMP, wkr, sizeof(*wkr), lock); in writeWepKeyRid()
1778 rc = PC4500_writerid(ai, RID_WEP_PERM, wkr, sizeof(*wkr), lock); in writeWepKeyRid()
3792 WepKeyRid wkr; in setup_card() local
3914 rc = readWepKeyRid(ai, &wkr, 1, lock); in setup_card()
3916 lastindex = wkr.kindex; in setup_card()
3917 if (wkr.kindex == cpu_to_le16(0xffff)) { in setup_card()
3918 ai->defindex = wkr.mac[0]; in setup_card()
3920 rc = readWepKeyRid(ai, &wkr, 0, lock); in setup_card()
3921 } while(lastindex != wkr.kindex); in setup_card()
5204 WepKeyRid wkr; in get_wep_key() local
5208 rc = readWepKeyRid(ai, &wkr, 1, 1); in get_wep_key()
5212 lastindex = wkr.kindex; in get_wep_key()
5213 if (le16_to_cpu(wkr.kindex) == index) { in get_wep_key()
5214 int klen = min_t(int, buflen, le16_to_cpu(wkr.klen)); in get_wep_key()
5215 memcpy(buf, wkr.key, klen); in get_wep_key()
5218 rc = readWepKeyRid(ai, &wkr, 0, 1); in get_wep_key()
5221 } while (lastindex != wkr.kindex); in get_wep_key()
5227 WepKeyRid wkr; in get_wep_tx_idx() local
5231 rc = readWepKeyRid(ai, &wkr, 1, 1); in get_wep_tx_idx()
5235 lastindex = wkr.kindex; in get_wep_tx_idx()
5236 if (wkr.kindex == cpu_to_le16(0xffff)) in get_wep_tx_idx()
5237 return wkr.mac[0]; in get_wep_tx_idx()
5238 rc = readWepKeyRid(ai, &wkr, 0, 1); in get_wep_tx_idx()
5241 } while (lastindex != wkr.kindex); in get_wep_tx_idx()
5249 WepKeyRid wkr; in set_wep_key() local
5255 memset(&wkr, 0, sizeof(wkr)); in set_wep_key()
5256 wkr.len = cpu_to_le16(sizeof(wkr)); in set_wep_key()
5257 wkr.kindex = cpu_to_le16(index); in set_wep_key()
5258 wkr.klen = cpu_to_le16(keylen); in set_wep_key()
5259 memcpy(wkr.key, key, keylen); in set_wep_key()
5260 memcpy(wkr.mac, macaddr, ETH_ALEN); in set_wep_key()
5263 rc = writeWepKeyRid(ai, &wkr, perm, lock); in set_wep_key()
5270 WepKeyRid wkr; in set_wep_tx_idx() local
5273 memset(&wkr, 0, sizeof(wkr)); in set_wep_tx_idx()
5274 wkr.len = cpu_to_le16(sizeof(wkr)); in set_wep_tx_idx()
5275 wkr.kindex = cpu_to_le16(0xffff); in set_wep_tx_idx()
5276 wkr.mac[0] = (char)index; in set_wep_tx_idx()
5283 rc = writeWepKeyRid(ai, &wkr, perm, lock); in set_wep_tx_idx()
5348 WepKeyRid wkr; in proc_wepkey_open() local
5355 memset(&wkr, 0, sizeof(wkr)); in proc_wepkey_open()
5372 rc = readWepKeyRid(ai, &wkr, 1, 1); in proc_wepkey_open()
5374 lastindex = wkr.kindex; in proc_wepkey_open()
5375 if (wkr.kindex == cpu_to_le16(0xffff)) { in proc_wepkey_open()
5377 (int)wkr.mac[0]); in proc_wepkey_open()
5380 le16_to_cpu(wkr.kindex), in proc_wepkey_open()
5381 le16_to_cpu(wkr.klen)); in proc_wepkey_open()
5383 readWepKeyRid(ai, &wkr, 0, 1); in proc_wepkey_open()
5384 } while((lastindex != wkr.kindex) && (j < 180-30)); in proc_wepkey_open()