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()
5781 static int airo_get_quality (StatusRid *status_rid, CapabilityRid *cap_rid) in airo_get_quality() argument
5789 if (!(cap_rid->hardCap & cpu_to_le16(8))) in airo_get_quality()
5793 if (memcmp(cap_rid->prodName, "350", 3)) in airo_get_quality()
5808 #define airo_get_max_quality(cap_rid) (memcmp((cap_rid)->prodName, "350", 3) ? 0x20 : 0xa0) argument
5809 #define airo_get_avg_quality(cap_rid) (memcmp((cap_rid)->prodName, "350", 3) ? 0x10 : 0x50) argument
6078 CapabilityRid cap_rid; /* Card capability info */ in airo_set_rate() local
6083 readCapabilityRid(local, &cap_rid, 1); in airo_set_rate()
6089 brate = cap_rid.supportedRates[vwrq->value]; in airo_set_rate()
6096 if (normvalue == cap_rid.supportedRates[i]) { in airo_set_rate()
6106 if (cap_rid.supportedRates[i] == 0) in airo_set_rate()
6110 brate = cap_rid.supportedRates[i - 1]; in airo_set_rate()
6123 local->config.rates[i] = cap_rid.supportedRates[i]; in airo_set_rate()
6804 CapabilityRid cap_rid; /* Card capability info */ in airo_set_txpow() local
6809 readCapabilityRid(local, &cap_rid, 1); in airo_set_txpow()
6820 for (i = 0; i < 8 && cap_rid.txPowerLevels[i]; i++) in airo_set_txpow()
6821 if (v == cap_rid.txPowerLevels[i]) { in airo_set_txpow()
6931 CapabilityRid cap_rid; /* Card capability info */ in airo_get_range() local
6935 readCapabilityRid(local, &cap_rid, 1); in airo_get_range()
6959 range->max_qual.qual = airo_get_max_quality(&cap_rid); in airo_get_range()
6970 range->avg_qual.qual = airo_get_avg_quality(&cap_rid); in airo_get_range()
6976 range->bitrate[i] = cap_rid.supportedRates[i] * 500000; in airo_get_range()
6995 if (cap_rid.softCap & cpu_to_le16(2)) { in airo_get_range()
6999 if (cap_rid.softCap & cpu_to_le16(0x100)) { in airo_get_range()
7005 cap_rid.softCap & cpu_to_le16(0x80) ? 4 : 1; in airo_get_range()
7020 range->txpower[i] = le16_to_cpu(cap_rid.txPowerLevels[i]); in airo_get_range()
7755 CapabilityRid cap_rid; in airo_read_wireless_stats() local
7762 readCapabilityRid(local, &cap_rid, 0); in airo_read_wireless_stats()
7780 local->wstats.qual.qual = airo_get_quality(&status_rid, &cap_rid); in airo_read_wireless_stats()