/freebsd-9.3-release/contrib/wpa/wpa_supplicant/ |
H A D | bss.h | 91 int wpa_bss_get_bit_rates(const struct wpa_bss *bss, u8 **rates);
|
H A D | mlme.c | 113 wpa_s->mlme.curr_rates = mode->rates; 1065 u8 rates[32]; local 1177 if (rates_len > sizeof(rates)) 1178 rates_len = sizeof(rates); 1179 os_memcpy(rates, elems.supp_rates, rates_len); 1182 if (_len > sizeof(rates) - rates_len) 1183 _len = sizeof(rates) - rates_len; 1184 os_memcpy(rates + rates_len, elems.ext_supp_rates, _len); 1201 if (wpa_drv_mlme_add_sta(wpa_s, wpa_s->bssid, rates, rates_len) < 0) { 1372 struct ieee80211_rate *rates; 2222 int res = 0, rates, done = 0, bssid_changed; local [all...] |
/freebsd-9.3-release/sys/net80211/ |
H A D | ieee80211_adhoc.c | 663 is11bclient(const uint8_t *rates, const uint8_t *xrates) argument 669 if (xrates != NULL || rates == NULL) 671 for (i = 0; i < rates[1]; i++) { 672 int r = rates[2+i] & IEEE80211_RATE_VAL; 687 uint8_t *ssid, *rates, *xrates; local 775 * [tlv] supported rates 776 * [tlv] extended supported rates 778 ssid = rates = xrates = NULL; 787 rates = frm; 795 IEEE80211_VERIFY_ELEMENT(rates, IEEE80211_RATE_MAXSIZ [all...] |
H A D | ieee80211.c | 100 * Default supported rates for 802.11 operation (in IEEE .5Mb units). 111 /* NB: OFDM rates are handled specially based on mode */ 1041 * Add legacy rate to the collection of all rates. 1135 /* XXX does this work for 11ng basic rates? */ 1147 /* NB: skip AUTO since it has no rates */ 1151 if_printf(ifp, "%s rates: ", ieee80211_phymode_name[mode]); 1412 * Adjust basic rates in 11b/11g supported rate set. 1414 * this is a noop as those rates sets are different 1468 findmedia(const struct ratemedia rates[], int n, u_int match) argument 1473 if (rates[ 1487 static const struct ratemedia rates[] = { local [all...] |
H A D | ieee80211_hostap.c | 1661 is11bclient(const uint8_t *rates, const uint8_t *xrates) argument 1667 if (xrates != NULL || rates == NULL) 1669 for (i = 0; i < rates[1]; i++) { 1670 int r = rates[2+i] & IEEE80211_RATE_VAL; 1685 uint8_t *ssid, *rates, *xrates, *wpa, *rsn, *wme, *ath, *htcap; local 1800 * [tlv] supported rates 1801 * [tlv] extended supported rates 1803 ssid = rates = xrates = NULL; 1812 rates = frm; 1820 IEEE80211_VERIFY_ELEMENT(rates, IEEE80211_RATE_MAXSIZ [all...] |
H A D | ieee80211_input.c | 377 const uint8_t *rates, const uint8_t *xrates, int flags) 383 rs->rs_nrates = rates[1]; 384 memcpy(rs->rs_rates, rates + 2, rs->rs_nrates); 395 "%u of %u rates", nxrates, xrates[1]); 484 * [tlv] supported rates 489 * [tlv] extended supported rates 517 scan->rates = frm; 616 IEEE80211_VERIFY_ELEMENT(scan->rates, IEEE80211_RATE_MAXSIZE, 618 if (scan->rates != NULL && scan->xrates != NULL) { 626 IEEE80211_RATE_MAXSIZE - scan->rates[ 376 ieee80211_setup_rates(struct ieee80211_node *ni, const uint8_t *rates, const uint8_t *xrates, int flags) argument [all...] |
H A D | ieee80211_sta.c | 1131 * rates, etc) may/will be wrong. 1258 uint8_t *rates, *xrates, *wme, *htcap, *htinfo; local 1492 * [tlv] supported rates 1493 * [tlv] extended supported rates 1514 rates = xrates = wme = htcap = htinfo = NULL; 1519 rates = frm; 1552 IEEE80211_VERIFY_ELEMENT(rates, IEEE80211_RATE_MAXSIZE, return); 1555 IEEE80211_RATE_MAXSIZE - rates[1], return); 1556 rate = ieee80211_setup_rates(ni, rates, xrates,
|
H A D | ieee80211_input.h | 251 const uint8_t *rates, const uint8_t *xrates, int flags);
|
H A D | ieee80211_scan.h | 205 uint8_t *rates; member in struct:ieee80211_scanparams
|
H A D | ieee80211_proto.c | 527 * XXX we are called to process both MCS and legacy rates; 532 * for legacy rates. 542 * Sort rates. 560 * Check against supported rates. 584 * Delete unacceptable rates. 664 static const int rates[] = { 2, 4, 11, 22, 12, 24, 48 }; local 667 if (rs->rs_nrates < N(rates)) 669 for (i = 0; i < N(rates); i++) { 672 if (rates[i] == r) 674 if (r > rates[ [all...] |
/freebsd-9.3-release/contrib/tcpdump/ |
H A D | print-802_11.c | 71 for (z = 0; z < p.rates.length ; z++) { \ 72 PRINT_RATE(sep, p.rates.rate[z], \ 73 (p.rates.rate[z] & 0x80 ? "*" : "")); \ 76 if (p.rates.length != 0) \ 514 "the data rates in BSSBasicRateSet parameter", /* 18 */ 541 "Association denied due to excessive frame loss rates and/or " 661 struct rates_t rates; local 753 memcpy(&rates, p + offset, 2); 756 if (rates.length != 0) { 757 if (rates [all...] |
H A D | ieee802_11.h | 240 struct rates_t rates; member in struct:mgmt_body_t
|
/freebsd-9.3-release/sys/dev/ath/ath_hal/ |
H A D | ah.c | 260 ath_hal_pkt_txtime(struct ath_hal *ah, const HAL_RATE_TABLE *rates, uint32_t frameLen, argument 266 rc = rates->info[rateix].rateCode; 270 return ath_hal_computetxtime(ah, rates, frameLen, rateix, shortPreamble); 320 const HAL_RATE_TABLE *rates, uint32_t frameLen, uint16_t rateix, 326 /* Warn if this function is called for 11n rates; it should not be! */ 327 if (IS_HT_RATE(rates->info[rateix].rateCode)) 329 __func__, rateix, rates->info[rateix].rateCode); 331 kbps = rates->info[rateix].rateKbps; 338 switch (rates->info[rateix].phy) { 341 if (shortPreamble && rates 319 ath_hal_computetxtime(struct ath_hal *ah, const HAL_RATE_TABLE *rates, uint32_t frameLen, uint16_t rateix, HAL_BOOL shortPreamble) argument [all...] |
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/ |
H A D | dtrace.c | 1125 }, rates[] = { local 1136 for (i = 0; rates[i].name != NULL; i++) { 1137 if (dtrace_getopt(g_dtp, rates[i].optname, &rates[i].val) == -1) 1138 fatal("couldn't get option %s", rates[i].optname); 1171 for (i = 0; rates[i].name != NULL; i++) { 1175 if (rates[i].val == DTRACEOPT_UNSET) 1178 (void) dtrace_getopt(g_dtp, rates[i].optname, &nval); 1183 if (rates[i].val == nval) 1186 dir = nval > rates[ [all...] |
/freebsd-9.3-release/tools/tools/net80211/wlaninject/ |
H A D | wlaninject.c | 182 "\t-R\tstandard rates\n" 680 unsigned char rates[] = "\x1\x4\x82\x84\xb\x16"; local 683 if ((sizeof(rates) - 1) > left) { 684 printf("No space for rates\n"); 688 memcpy(body, rates, sizeof(rates) - 1); 689 body += sizeof(rates) - 1; 690 len += sizeof(rates) - 1;
|
/freebsd-9.3-release/sys/dev/mwl/ |
H A D | if_mwl.c | 1031 MWL_HAL_TXRATE rates; local 1033 memset(&rates, 0, sizeof(rates)); 1036 rates.MgtRate = rs->rs_rates[0] & IEEE80211_RATE_VAL; 1038 rates.McastRate = rates.MgtRate; 1040 return mwl_hal_settxrate_auto(sc->sc_mh, &rates); 1053 MWL_HAL_TXRATE rates; local 1061 memset(&rates, 0, sizeof(rates)); 4102 uint32_t rates; local 4131 uint32_t rates; local [all...] |
/freebsd-9.3-release/sys/dev/usb/wlan/ |
H A D | if_upgtvar.h | 84 uint8_t rates[20]; member in struct:upgt_fw_bra_descr 325 uint8_t rates[8]; member in struct:upgt_lmac_tx_desc
|
H A D | if_uath.c | 145 UATH_DEBUG_RATES = 0x00008000, /* rates */ 2005 struct uath_cmd_rates rates; local 2007 memset(&rates, 0, sizeof(rates)); 2008 rates.connid = htobe32(UATH_ID_BSS); /* XXX */ 2009 rates.size = htobe32(sizeof(struct uath_cmd_rateset)); 2011 rates.rateset.length = rs->rs_nrates; 2012 bcopy(rs->rs_rates, &rates.rateset.set[0], rs->rs_nrates); 2015 "setting supported rates nrates=%d\n", rs->rs_nrates); 2017 &rates, sizeo [all...] |
/freebsd-9.3-release/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212_xmit.c | 926 ar5212GetTxCompletionRates(struct ath_hal *ah, const struct ath_desc *ds0, int *rates, int *tries) argument 930 rates[0] = MS(ads->ds_ctl3, AR_XmitRate0); 931 rates[1] = MS(ads->ds_ctl3, AR_XmitRate1); 932 rates[2] = MS(ads->ds_ctl3, AR_XmitRate2); 933 rates[3] = MS(ads->ds_ctl3, AR_XmitRate3);
|
/freebsd-9.3-release/sys/dev/atkbdc/ |
H A D | atkbd.c | 1489 static int rates[] = { 34, 38, 42, 46, 50, 55, 59, 63, variable 1503 return rates[i & 0x1f]; 1517 for (i = sizeof(rates)/sizeof(rates[0]) - 1; i > 0; --i) { 1518 if (rate >= rates[i])
|
/freebsd-9.3-release/sys/dev/kbdmux/ |
H A D | kbdmux.c | 936 static int rates[] = { local 1177 for (i = sizeof(rates)/sizeof(rates[0]) - 1; i > 0; i --) 1178 if (((int *)arg)[1] >= rates[i]) 1191 kbd->kb_delay2 = rates[mode & 0x1f];
|
/freebsd-9.3-release/sys/dev/vkbd/ |
H A D | vkbd.c | 1310 static int rates[] = { 34, 38, 42, 46, 50, 55, 59, 63, variable 1324 return (rates[i & 0x1f]); 1338 for (i = sizeof(rates)/sizeof(rates[0]) - 1; i > 0; i --) { 1339 if (rate >= rates[i])
|
/freebsd-9.3-release/contrib/wpa/src/ap/ |
H A D | hw_features.c | 40 os_free(hw_features[i].rates); 151 mode->rates[i])) 155 rate->rate = mode->rates[i]; 166 wpa_printf(MSG_ERROR, "No rates remaining in supported/basic " 606 * Sets up the hardware mode, channel, rates, and passive scanning 672 wpa_printf(MSG_ERROR, "Failed to prepare rates table."); 675 "Failed to prepare rates table.");
|
/freebsd-9.3-release/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar5416_xmit.c | 154 /* NB: accept HT rates */ 737 ar5416GetTxCompletionRates(struct ath_hal *ah, const struct ath_desc *ds0, int *rates, int *tries) argument 741 rates[0] = MS(ads->ds_ctl3, AR_XmitRate0); 742 rates[1] = MS(ads->ds_ctl3, AR_XmitRate1); 743 rates[2] = MS(ads->ds_ctl3, AR_XmitRate2); 744 rates[3] = MS(ads->ds_ctl3, AR_XmitRate3);
|
/freebsd-9.3-release/sys/dev/if_ndis/ |
H A D | if_ndis.c | 732 ndis_80211_rates_ex rates; local 775 len = sizeof(rates); 776 bzero((char *)&rates, len); 778 (void *)rates, &len); 780 device_printf(dev, "get rates failed: 0x%x\n", r); 782 * Since the supported rates only up to 8 can be supported, 813 switch (rates[i] & IEEE80211_RATE_VAL) { 826 SETRATE(IEEE80211_MODE_11B, rates[i]); 831 SETRATE(IEEE80211_MODE_11A, rates[i]); 835 SETRATE(IEEE80211_MODE_11G, rates[ 3247 uint8_t rates[2+IEEE80211_RATE_MAXSIZE]; local [all...] |