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()
3888 WepKeyRid wkr; in setup_card() local
3959 rc = readWepKeyRid(ai, &wkr, 1, lock); in setup_card()
3961 lastindex = wkr.kindex; in setup_card()
3962 if (wkr.kindex == cpu_to_le16(0xffff)) { in setup_card()
3963 ai->defindex = wkr.mac[0]; in setup_card()
3965 rc = readWepKeyRid(ai, &wkr, 0, lock); in setup_card()
3966 } while (lastindex != wkr.kindex); in setup_card()
5195 WepKeyRid wkr; in get_wep_key() local
5199 rc = readWepKeyRid(ai, &wkr, 1, 1); in get_wep_key()
5203 lastindex = wkr.kindex; in get_wep_key()
5204 if (le16_to_cpu(wkr.kindex) == index) { in get_wep_key()
5205 int klen = min_t(int, buflen, le16_to_cpu(wkr.klen)); in get_wep_key()
5206 memcpy(buf, wkr.key, klen); in get_wep_key()
5209 rc = readWepKeyRid(ai, &wkr, 0, 1); in get_wep_key()
5212 } while (lastindex != wkr.kindex); in get_wep_key()
5218 WepKeyRid wkr; in get_wep_tx_idx() local
5222 rc = readWepKeyRid(ai, &wkr, 1, 1); in get_wep_tx_idx()
5226 lastindex = wkr.kindex; in get_wep_tx_idx()
5227 if (wkr.kindex == cpu_to_le16(0xffff)) in get_wep_tx_idx()
5228 return wkr.mac[0]; in get_wep_tx_idx()
5229 rc = readWepKeyRid(ai, &wkr, 0, 1); in get_wep_tx_idx()
5232 } while (lastindex != wkr.kindex); in get_wep_tx_idx()
5240 WepKeyRid wkr; in set_wep_key() local
5246 memset(&wkr, 0, sizeof(wkr)); in set_wep_key()
5247 wkr.len = cpu_to_le16(sizeof(wkr)); in set_wep_key()
5248 wkr.kindex = cpu_to_le16(index); in set_wep_key()
5249 wkr.klen = cpu_to_le16(keylen); in set_wep_key()
5250 memcpy(wkr.key, key, keylen); in set_wep_key()
5251 memcpy(wkr.mac, macaddr, ETH_ALEN); in set_wep_key()
5254 rc = writeWepKeyRid(ai, &wkr, perm, lock); in set_wep_key()
5261 WepKeyRid wkr; in set_wep_tx_idx() local
5264 memset(&wkr, 0, sizeof(wkr)); in set_wep_tx_idx()
5265 wkr.len = cpu_to_le16(sizeof(wkr)); in set_wep_tx_idx()
5266 wkr.kindex = cpu_to_le16(0xffff); in set_wep_tx_idx()
5267 wkr.mac[0] = (char)index; in set_wep_tx_idx()
5274 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()