/external/iptables/extensions/ |
H A D | libxt_limit.c | 108 static const struct rates struct 112 } rates[] = { { "day", XT_LIMIT_SCALE*24*60*60 }, variable in typeref:struct:rates 121 for (i = 1; i < ARRAY_SIZE(rates); ++i) 122 if (period > rates[i].mult 123 || rates[i].mult/period < rates[i].mult%period) 126 printf(" %u/%s", rates[i-1].mult / period, rates[i-1].name);
|
H A D | libxt_hashlimit.c | 311 static const struct rates struct 315 } rates[] = { { "day", XT_HASHLIMIT_SCALE*24*60*60 }, variable in typeref:struct:rates 324 for (i = 1; i < ARRAY_SIZE(rates); ++i) 325 if (period > rates[i].mult 326 || rates[i].mult/period < rates[i].mult%period) 329 printf(" %u/%s", rates[i-1].mult / period, rates[i-1].name);
|
/external/iproute2/misc/ |
H A D | ifstat.c | 220 double *rates = n->rate; local 228 rates = h1->rate; 236 fprintf(fp, "%llu %u ", vals[i], (unsigned)rates[i]); 246 void format_rate(FILE *fp, unsigned long long *vals, double *rates, int i) argument 256 if (rates[i] > mega) { 257 sprintf(temp, "%uM", (unsigned)(rates[i]/mega)); 259 } else if (rates[i] > kilo) { 260 sprintf(temp, "%uK", (unsigned)(rates[i]/kilo)); 263 fprintf(fp, "%-6u ", (unsigned)rates[i]);
|
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/ |
H A D | driver_bsd.c | 588 getmaxrate(uint8_t rates[15], uint8_t nrates) argument 593 int rate = rates[i] & IEEE80211_RATE_VAL;
|
H A D | driver.h | 363 struct wpa_rate_data *rates; member in struct:wpa_hw_modes 826 * get_hw_feature_data - Get hardware support data (channels and rates)
|
/external/wpa_supplicant_8/wpa_supplicant/ |
H A D | bss.c | 835 int wpa_bss_get_bit_rates(const struct wpa_bss *bss, u8 **rates) argument 857 *rates = r;
|
/external/tcpdump/ |
H A D | ieee802_11.h | 242 struct rates_t rates; member in struct:mgmt_body_t
|
/external/wpa_supplicant_6/wpa_supplicant/ |
H A D | mlme.c | 109 wpa_s->mlme.curr_rates = mode->rates; 1035 u8 rates[32]; local 1146 if (rates_len > sizeof(rates)) 1147 rates_len = sizeof(rates); 1148 os_memcpy(rates, elems.supp_rates, rates_len); 1151 if (_len > sizeof(rates) - rates_len) 1152 _len = sizeof(rates) - rates_len; 1153 os_memcpy(rates + rates_len, elems.ext_supp_rates, _len); 1170 if (wpa_drv_mlme_add_sta(wpa_s, wpa_s->bssid, rates, rates_len) < 0) { 1340 struct ieee80211_rate *rates; 2060 int res = 0, rates, done = 0; local [all...] |
/external/wpa_supplicant_8/hostapd/src/drivers/ |
H A D | driver.h | 79 * num_rates - Number of entries in the rates array 84 * rates - Array of supported rates in 100 kbps units 86 int *rates; member in struct:hostapd_hw_modes 286 * p2p_probe - Used to disable CCK (802.11b) rates for P2P probes 288 * When set, the driver is expected to remove rates 1, 2, 5.5, and 11 289 * Mbps from the support rates element(s) in the Probe Request frames 290 * and not to transmit the frames at any of those rates. 599 * basic_rates: -1 terminated array of basic rates in 100 kbps 1379 * get_hw_feature_data - Get hardware support data (channels and rates) [all...] |
H A D | driver_nl80211.c | 3593 struct nl_msg *msg, *rates = NULL; local 3604 rates = nlmsg_alloc(); 3605 if (rates == NULL) 3609 * Remove 2.4 GHz rates 1, 2, 5.5, 11 Mbps from supported rates 3610 * by masking out everything else apart from the OFDM rates 6, 3611 * 9, 12, 18, 24, 36, 48, 54 Mbps from non-MCS rates. All 5 GHz 3612 * rates are left enabled. 3614 NLA_PUT(rates, NL80211_BAND_2GHZ, 8, 3616 if (nla_put_nested(msg, NL80211_ATTR_SCAN_SUPP_RATES, rates) < 5397 u8 rates[NL80211_MAX_SUPP_RATES]; local [all...] |
/external/wpa_supplicant_8/src/drivers/ |
H A D | driver.h | 79 * num_rates - Number of entries in the rates array 84 * rates - Array of supported rates in 100 kbps units 86 int *rates; member in struct:hostapd_hw_modes 286 * p2p_probe - Used to disable CCK (802.11b) rates for P2P probes 288 * When set, the driver is expected to remove rates 1, 2, 5.5, and 11 289 * Mbps from the support rates element(s) in the Probe Request frames 290 * and not to transmit the frames at any of those rates. 599 * basic_rates: -1 terminated array of basic rates in 100 kbps 1379 * get_hw_feature_data - Get hardware support data (channels and rates) [all...] |
H A D | driver_nl80211.c | 3593 struct nl_msg *msg, *rates = NULL; local 3604 rates = nlmsg_alloc(); 3605 if (rates == NULL) 3609 * Remove 2.4 GHz rates 1, 2, 5.5, 11 Mbps from supported rates 3610 * by masking out everything else apart from the OFDM rates 6, 3611 * 9, 12, 18, 24, 36, 48, 54 Mbps from non-MCS rates. All 5 GHz 3612 * rates are left enabled. 3614 NLA_PUT(rates, NL80211_BAND_2GHZ, 8, 3616 if (nla_put_nested(msg, NL80211_ATTR_SCAN_SUPP_RATES, rates) < 5397 u8 rates[NL80211_MAX_SUPP_RATES]; local [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/ |
H A D | driver.h | 79 * num_rates - Number of entries in the rates array 84 * rates - Array of supported rates in 100 kbps units 86 int *rates; member in struct:hostapd_hw_modes 286 * p2p_probe - Used to disable CCK (802.11b) rates for P2P probes 288 * When set, the driver is expected to remove rates 1, 2, 5.5, and 11 289 * Mbps from the support rates element(s) in the Probe Request frames 290 * and not to transmit the frames at any of those rates. 599 * basic_rates: -1 terminated array of basic rates in 100 kbps 1379 * get_hw_feature_data - Get hardware support data (channels and rates) [all...] |
H A D | driver_nl80211.c | 3593 struct nl_msg *msg, *rates = NULL; local 3604 rates = nlmsg_alloc(); 3605 if (rates == NULL) 3609 * Remove 2.4 GHz rates 1, 2, 5.5, 11 Mbps from supported rates 3610 * by masking out everything else apart from the OFDM rates 6, 3611 * 9, 12, 18, 24, 36, 48, 54 Mbps from non-MCS rates. All 5 GHz 3612 * rates are left enabled. 3614 NLA_PUT(rates, NL80211_BAND_2GHZ, 8, 3616 if (nla_put_nested(msg, NL80211_ATTR_SCAN_SUPP_RATES, rates) < 5397 u8 rates[NL80211_MAX_SUPP_RATES]; local [all...] |