Lines Matching refs:cap_rid

2790 	CapabilityRid cap_rid;  in _init_airo_card()  local
2877 rc = readCapabilityRid(ai, &cap_rid, 1); in _init_airo_card()
2883 ai->wep_capable = (cap_rid.softCap & cpu_to_le16(0x02)) ? 1 : 0; in _init_airo_card()
2884 ai->max_wep_idx = (cap_rid.softCap & cpu_to_le16(0x80)) ? 3 : 0; in _init_airo_card()
2887 ((le16_to_cpu(cap_rid.softVer) >> 8) & 0xF), in _init_airo_card()
2888 (le16_to_cpu(cap_rid.softVer) & 0xFF), in _init_airo_card()
2889 le16_to_cpu(cap_rid.softSubVer)); in _init_airo_card()
2893 if (le16_to_cpu(cap_rid.softVer) > 0x530 in _init_airo_card()
2894 || (le16_to_cpu(cap_rid.softVer) == 0x530 in _init_airo_card()
2895 && le16_to_cpu(cap_rid.softSubVer) >= 17)) { in _init_airo_card()
3828 CapabilityRid cap_rid; in airo_readconfig() local
3836 status = readCapabilityRid(ai, &cap_rid, lock); in airo_readconfig()
3847 if (cap_rid.softCap & cpu_to_le16(8)) in airo_readconfig()
3857 if (le16_to_cpu(cap_rid.len) >= sizeof(cap_rid) && in airo_readconfig()
3858 (cap_rid.extSoftCap & cpu_to_le16(1)) && in airo_readconfig()
4677 CapabilityRid cap_rid; in proc_status_open() local
4691 readCapabilityRid(apriv, &cap_rid, 1); in proc_status_open()
4726 cap_rid.prodName, in proc_status_open()
4727 cap_rid.manName, in proc_status_open()
4728 cap_rid.prodVer, in proc_status_open()
4729 le16_to_cpu(cap_rid.radioType), in proc_status_open()
4730 le16_to_cpu(cap_rid.country), in proc_status_open()
4731 le16_to_cpu(cap_rid.hardVer), in proc_status_open()
4732 le16_to_cpu(cap_rid.softVer), in proc_status_open()
4733 le16_to_cpu(cap_rid.softSubVer), in proc_status_open()
4734 le16_to_cpu(cap_rid.bootBlockVer)); in proc_status_open()
5782 static int airo_get_quality (StatusRid *status_rid, CapabilityRid *cap_rid) in airo_get_quality() argument
5790 if (!(cap_rid->hardCap & cpu_to_le16(8))) in airo_get_quality()
5794 if (memcmp(cap_rid->prodName, "350", 3)) in airo_get_quality()
5809 #define airo_get_max_quality(cap_rid) (memcmp((cap_rid)->prodName, "350", 3) ? 0x20 : 0xa0) argument
5810 #define airo_get_avg_quality(cap_rid) (memcmp((cap_rid)->prodName, "350", 3) ? 0x10 : 0x50) argument
6088 CapabilityRid cap_rid; /* Card capability info */ in airo_set_rate() local
6093 readCapabilityRid(local, &cap_rid, 1); in airo_set_rate()
6099 brate = cap_rid.supportedRates[vwrq->value]; in airo_set_rate()
6106 if (normvalue == cap_rid.supportedRates[i]) { in airo_set_rate()
6116 if (cap_rid.supportedRates[i] == 0) in airo_set_rate()
6120 brate = cap_rid.supportedRates[i - 1]; in airo_set_rate()
6133 local->config.rates[i] = cap_rid.supportedRates[i]; in airo_set_rate()
6822 CapabilityRid cap_rid; /* Card capability info */ in airo_set_txpow() local
6827 readCapabilityRid(local, &cap_rid, 1); in airo_set_txpow()
6838 for (i = 0; i < 8 && cap_rid.txPowerLevels[i]; i++) in airo_set_txpow()
6839 if (v == cap_rid.txPowerLevels[i]) { in airo_set_txpow()
6953 CapabilityRid cap_rid; /* Card capability info */ in airo_get_range() local
6957 readCapabilityRid(local, &cap_rid, 1); in airo_get_range()
6981 range->max_qual.qual = airo_get_max_quality(&cap_rid); in airo_get_range()
6992 range->avg_qual.qual = airo_get_avg_quality(&cap_rid); in airo_get_range()
6998 range->bitrate[i] = cap_rid.supportedRates[i] * 500000; in airo_get_range()
7017 if (cap_rid.softCap & cpu_to_le16(2)) { in airo_get_range()
7021 if (cap_rid.softCap & cpu_to_le16(0x100)) { in airo_get_range()
7027 cap_rid.softCap & cpu_to_le16(0x80) ? 4 : 1; in airo_get_range()
7042 range->txpower[i] = le16_to_cpu(cap_rid.txPowerLevels[i]); in airo_get_range()
7767 CapabilityRid cap_rid; in airo_read_wireless_stats() local
7774 readCapabilityRid(local, &cap_rid, 0); in airo_read_wireless_stats()
7792 local->wstats.qual.qual = airo_get_quality(&status_rid, &cap_rid); in airo_read_wireless_stats()