| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/include/ |
| H A D | bcmwifi_rspec.h | 72 #define RSPEC_HE_LTF_GI(rspec) (((rspec) & WL_RSPEC_HE_GI_MASK) >> WL_RSPEC_HE_GI_SHIFT) argument 77 #define RSPEC_ISHEGI(rspec) (RSPEC_HE_LTF_GI(rspec) > WL_RSPEC_HE_1x_LTF_GI_0_8us) argument 79 #define HE_GI_TO_RSPEC_SET(rspec, gi) ((rspec & (~WL_RSPEC_HE_GI_MASK)) | \ argument 94 #define RSPEC_HE_DCM(rspec) (((rspec) & WL_RSPEC_DCM) >> WL_RSPEC_DCM_SHIFT) argument 95 #define RSPEC_HE_ER(rspec) (((rspec) & WL_RSPEC_ER_MASK) >> WL_RSPEC_ER_SHIFT) argument 97 #define RSPEC_HE_ER_ENAB(rspec) (((rspec) & WL_RSPEC_ER_ENAB_MASK) >> \ argument 100 #define RSPEC_HE_ER_ENAB(rspec) FALSE argument 102 #define RSPEC_HE_ER_TONE(rspec) (((rspec) & WL_RSPEC_ER_TONE_MASK) >> \ argument 172 #define RSPEC_BW(rspec) ((rspec) & WL_RSPEC_BW_MASK) argument 173 #define RSPEC_IS20MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_20MHZ) argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/ |
| H A D | bcmwifi_rspec.h | 72 #define RSPEC_HE_LTF_GI(rspec) (((rspec) & WL_RSPEC_HE_GI_MASK) >> WL_RSPEC_HE_GI_SHIFT) argument 77 #define RSPEC_ISHEGI(rspec) (RSPEC_HE_LTF_GI(rspec) > WL_RSPEC_HE_1x_LTF_GI_0_8us) argument 79 #define HE_GI_TO_RSPEC_SET(rspec, gi) ((rspec & (~WL_RSPEC_HE_GI_MASK)) | \ argument 94 #define RSPEC_HE_DCM(rspec) (((rspec) & WL_RSPEC_DCM) >> WL_RSPEC_DCM_SHIFT) argument 95 #define RSPEC_HE_ER(rspec) (((rspec) & WL_RSPEC_ER_MASK) >> WL_RSPEC_ER_SHIFT) argument 97 #define RSPEC_HE_ER_ENAB(rspec) (((rspec) & WL_RSPEC_ER_ENAB_MASK) >> \ argument 100 #define RSPEC_HE_ER_ENAB(rspec) FALSE argument 102 #define RSPEC_HE_ER_TONE(rspec) (((rspec) & WL_RSPEC_ER_TONE_MASK) >> \ argument 172 #define RSPEC_BW(rspec) ((rspec) & WL_RSPEC_BW_MASK) argument 173 #define RSPEC_IS20MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_20MHZ) argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/infineon/ |
| H A D | bcmwifi_rspec.h | 69 #define RSPEC_HE_LTF_GI(rspec) (((rspec) & WL_RSPEC_HE_GI_MASK) >> WL_RSPEC_HE_GI_SHIFT) argument 74 #define RSPEC_ISHEGI(rspec) (RSPEC_HE_LTF_GI(rspec) > WL_RSPEC_HE_1x_LTF_GI_0_8us) argument 127 #define RSPEC_BW(rspec) ((rspec) & WL_RSPEC_BW_MASK) argument 128 #define RSPEC_IS20MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_20MHZ) argument 129 #define RSPEC_IS40MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_40MHZ) argument 130 #define RSPEC_IS80MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_80MHZ) argument 131 #define RSPEC_IS160MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_160MHZ) argument 133 #define RSPEC_ISSGI(rspec) (((rspec) & WL_RSPEC_SGI) != 0) argument 134 #define RSPEC_ISLDPC(rspec) (((rspec) & WL_RSPEC_LDPC) != 0) argument 135 #define RSPEC_ISSTBC(rspec) (((rspec) & WL_RSPEC_STBC) != 0) argument [all …]
|
| H A D | dhd_rtt.c | 399 rate_rspec2rate(uint32 rspec) in rate_rspec2rate() argument 403 if (RSPEC_ISLEGACY(rspec)) { in rate_rspec2rate() 404 rate = 500 * (rspec & WL_RSPEC_RATE_MASK); in rate_rspec2rate() 405 } else if (RSPEC_ISHT(rspec)) { in rate_rspec2rate() 406 uint mcs = (rspec & WL_RSPEC_RATE_MASK); in rate_rspec2rate() 409 rate = rate_mcs2rate(mcs, 1, WL_RSPEC_BW_40MHZ, RSPEC_ISSGI(rspec)); in rate_rspec2rate() 413 rate = rate_mcs2rate(mcs, nss, RSPEC_BW(rspec), RSPEC_ISSGI(rspec)); in rate_rspec2rate() 415 } else if (RSPEC_ISVHT(rspec)) { in rate_rspec2rate() 416 uint mcs = (rspec & WL_RSPEC_VHT_MCS_MASK); in rate_rspec2rate() 417 uint nss = (rspec & WL_RSPEC_VHT_NSS_MASK) >> WL_RSPEC_VHT_NSS_SHIFT; in rate_rspec2rate() [all …]
|
| H A D | wl_android.c | 7189 uint32 rspec; in wl_android_get_link_status() local 7227 error = wldev_iovar_getint(dev, "nrate", &rspec); in wl_android_get_link_status() 7228 if (unlikely(error) || rspec == 0) { in wl_android_get_link_status() 7233 encode = (rspec & WL_RSPEC_ENCODING_MASK); in wl_android_get_link_status() 7234 txexp = (rspec & WL_RSPEC_TXEXP_MASK) >> WL_RSPEC_TXEXP_SHIFT; in wl_android_get_link_status() 7266 ((encode == WL_RSPEC_ENCODE_HT) && (rspec & WL_RSPEC_HT_MCS_MASK) < 8) || in wl_android_get_link_status() 7268 ((rspec & WL_RSPEC_VHT_NSS_MASK) >> WL_RSPEC_VHT_NSS_SHIFT) == 1); in wl_android_get_link_status() 7271 if ((rspec & WL_RSPEC_STBC) && single_stream) { in wl_android_get_link_status()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/ |
| H A D | bcmwifi_rspec.h | 69 #define RSPEC_HE_LTF_GI(rspec) (((rspec) & WL_RSPEC_HE_GI_MASK) >> WL_RSPEC_HE_GI_SHIFT) argument 74 #define RSPEC_ISHEGI(rspec) (RSPEC_HE_LTF_GI(rspec) > WL_RSPEC_HE_1x_LTF_GI_0_8us) argument 127 #define RSPEC_BW(rspec) ((rspec) & WL_RSPEC_BW_MASK) argument 128 #define RSPEC_IS20MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_20MHZ) argument 129 #define RSPEC_IS40MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_40MHZ) argument 130 #define RSPEC_IS80MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_80MHZ) argument 131 #define RSPEC_IS160MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_160MHZ) argument 133 #define RSPEC_ISSGI(rspec) (((rspec) & WL_RSPEC_SGI) != 0) argument 134 #define RSPEC_ISLDPC(rspec) (((rspec) & WL_RSPEC_LDPC) != 0) argument 135 #define RSPEC_ISSTBC(rspec) (((rspec) & WL_RSPEC_STBC) != 0) argument [all …]
|
| H A D | dhd_rtt.c | 399 rate_rspec2rate(uint32 rspec) in rate_rspec2rate() argument 403 if (RSPEC_ISLEGACY(rspec)) { in rate_rspec2rate() 404 rate = 500 * (rspec & WL_RSPEC_RATE_MASK); in rate_rspec2rate() 405 } else if (RSPEC_ISHT(rspec)) { in rate_rspec2rate() 406 uint mcs = (rspec & WL_RSPEC_RATE_MASK); in rate_rspec2rate() 409 rate = rate_mcs2rate(mcs, 1, WL_RSPEC_BW_40MHZ, RSPEC_ISSGI(rspec)); in rate_rspec2rate() 413 rate = rate_mcs2rate(mcs, nss, RSPEC_BW(rspec), RSPEC_ISSGI(rspec)); in rate_rspec2rate() 415 } else if (RSPEC_ISVHT(rspec)) { in rate_rspec2rate() 416 uint mcs = (rspec & WL_RSPEC_VHT_MCS_MASK); in rate_rspec2rate() 417 uint nss = (rspec & WL_RSPEC_VHT_NSS_MASK) >> WL_RSPEC_VHT_NSS_SHIFT; in rate_rspec2rate() [all …]
|
| H A D | wl_android.c | 6916 uint32 rspec; in wl_android_get_link_status() local 6954 error = wldev_iovar_getint(dev, "nrate", &rspec); in wl_android_get_link_status() 6955 if (unlikely(error) || rspec == 0) { in wl_android_get_link_status() 6960 encode = (rspec & WL_RSPEC_ENCODING_MASK); in wl_android_get_link_status() 6961 txexp = (rspec & WL_RSPEC_TXEXP_MASK) >> WL_RSPEC_TXEXP_SHIFT; in wl_android_get_link_status() 6993 ((encode == WL_RSPEC_ENCODE_HT) && (rspec & WL_RSPEC_HT_MCS_MASK) < 8) || in wl_android_get_link_status() 6995 ((rspec & WL_RSPEC_VHT_NSS_MASK) >> WL_RSPEC_VHT_NSS_SHIFT) == 1); in wl_android_get_link_status() 6998 if ((rspec & WL_RSPEC_STBC) && single_stream) { in wl_android_get_link_status()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/ |
| H A D | bcmwifi_rspec.h | 69 #define RSPEC_HE_LTF_GI(rspec) (((rspec) & WL_RSPEC_HE_GI_MASK) >> WL_RSPEC_HE_GI_SHIFT) argument 74 #define RSPEC_ISHEGI(rspec) (RSPEC_HE_LTF_GI(rspec) > WL_RSPEC_HE_1x_LTF_GI_0_8us) argument 127 #define RSPEC_BW(rspec) ((rspec) & WL_RSPEC_BW_MASK) argument 128 #define RSPEC_IS20MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_20MHZ) argument 129 #define RSPEC_IS40MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_40MHZ) argument 130 #define RSPEC_IS80MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_80MHZ) argument 131 #define RSPEC_IS160MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_160MHZ) argument 133 #define RSPEC_ISSGI(rspec) (((rspec) & WL_RSPEC_SGI) != 0) argument 134 #define RSPEC_ISLDPC(rspec) (((rspec) & WL_RSPEC_LDPC) != 0) argument 135 #define RSPEC_ISSTBC(rspec) (((rspec) & WL_RSPEC_STBC) != 0) argument [all …]
|
| H A D | dhd_rtt.c | 399 rate_rspec2rate(uint32 rspec) in rate_rspec2rate() argument 403 if (RSPEC_ISLEGACY(rspec)) { in rate_rspec2rate() 404 rate = 500 * (rspec & WL_RSPEC_RATE_MASK); in rate_rspec2rate() 405 } else if (RSPEC_ISHT(rspec)) { in rate_rspec2rate() 406 uint mcs = (rspec & WL_RSPEC_RATE_MASK); in rate_rspec2rate() 409 rate = rate_mcs2rate(mcs, 1, WL_RSPEC_BW_40MHZ, RSPEC_ISSGI(rspec)); in rate_rspec2rate() 413 rate = rate_mcs2rate(mcs, nss, RSPEC_BW(rspec), RSPEC_ISSGI(rspec)); in rate_rspec2rate() 415 } else if (RSPEC_ISVHT(rspec)) { in rate_rspec2rate() 416 uint mcs = (rspec & WL_RSPEC_VHT_MCS_MASK); in rate_rspec2rate() 417 uint nss = (rspec & WL_RSPEC_VHT_NSS_MASK) >> WL_RSPEC_VHT_NSS_SHIFT; in rate_rspec2rate() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | bcmwifi_rspec.c | 37 wf_he_rspec_to_rate(ratespec_t rspec, uint max_mcs, uint max_nss) in wf_he_rspec_to_rate() argument 39 uint mcs = (rspec & WL_RSPEC_HE_MCS_MASK); in wf_he_rspec_to_rate() 40 uint nss = (rspec & WL_RSPEC_HE_NSS_MASK) >> WL_RSPEC_HE_NSS_SHIFT; in wf_he_rspec_to_rate() 41 bool dcm = (rspec & WL_RSPEC_DCM) != 0; in wf_he_rspec_to_rate() 42 uint bw = RSPEC_BW(rspec); in wf_he_rspec_to_rate() 43 uint gi = RSPEC_HE_LTF_GI(rspec); in wf_he_rspec_to_rate() 60 _wf_rspec_to_rate(ratespec_t rspec, bool rsel) in _wf_rspec_to_rate() argument 64 if (RSPEC_ISLEGACY(rspec)) { in _wf_rspec_to_rate() 65 rate = 500 * RSPEC2RATE(rspec); in _wf_rspec_to_rate() 66 } else if (RSPEC_ISHT(rspec)) { in _wf_rspec_to_rate() [all …]
|
| H A D | bcmwifi_monitor.c | 108 ratespec_t rspec = 0; in BCMFASTPATH() local 117 rspec = CCK_RSPEC(CCK_PHY2MAC_RATE(((cck_phy_hdr_t *)plcp)->signal)); in BCMFASTPATH() 118 rspec |= WL_RSPEC_BW_20MHZ; in BCMFASTPATH() 121 rspec = OFDM_RSPEC(OFDM_PHY2MAC_RATE(((ofdm_phy_hdr_t *)plcp)->rlpt[0])); in BCMFASTPATH() 122 rspec |= WL_RSPEC_BW_20MHZ; in BCMFASTPATH() 131 rspec = HT_RSPEC((ht_sig1 & HT_SIG1_MCS_MASK)); in BCMFASTPATH() 134 rspec |= WL_RSPEC_BW_40MHZ; in BCMFASTPATH() 137 rspec |= WL_RSPEC_BW_20MHZ; in BCMFASTPATH() 140 rspec |= WL_RSPEC_SGI; in BCMFASTPATH() 142 rspec |= WL_RSPEC_LDPC; in BCMFASTPATH() [all …]
|
| H A D | dhd_rtt.c | 421 rate_rspec2rate(uint32 rspec) in rate_rspec2rate() argument 425 if (RSPEC_ISLEGACY(rspec)) { in rate_rspec2rate() 426 rate = 500 * (rspec & WL_RSPEC_RATE_MASK); in rate_rspec2rate() 427 } else if (RSPEC_ISHT(rspec)) { in rate_rspec2rate() 428 uint mcs = (rspec & WL_RSPEC_RATE_MASK); in rate_rspec2rate() 431 rate = rate_mcs2rate(mcs, 1, WL_RSPEC_BW_40MHZ, RSPEC_ISSGI(rspec)); in rate_rspec2rate() 435 rate = rate_mcs2rate(mcs, nss, RSPEC_BW(rspec), RSPEC_ISSGI(rspec)); in rate_rspec2rate() 437 } else if (RSPEC_ISVHT(rspec)) { in rate_rspec2rate() 438 uint mcs = (rspec & WL_RSPEC_VHT_MCS_MASK); in rate_rspec2rate() 439 uint nss = (rspec & WL_RSPEC_VHT_NSS_MASK) >> WL_RSPEC_VHT_NSS_SHIFT; in rate_rspec2rate() [all …]
|
| H A D | bcmwifi_radiotap.c | 151 ratespec_t rspec = 0; in wl_calcRspecFromRTap() local 185 rspec = LEGACY_RSPEC(rate) | WL_RSPEC_OVERRIDE_RATE; in wl_calcRspecFromRTap() 187 rspec |= WL_RSPEC_OVERRIDE_MODE | WL_RSPEC_SHORT_PREAMBLE; in wl_calcRspecFromRTap() 201 rspec = HT_RSPEC(mcs) | WL_RSPEC_OVERRIDE_RATE; in wl_calcRspecFromRTap() 205 rspec |= WL_RSPEC_SGI; in wl_calcRspecFromRTap() 208 rspec |= WL_RSPEC_SHORT_PREAMBLE; in wl_calcRspecFromRTap() 211 rspec |= WL_RSPEC_LDPC; in wl_calcRspecFromRTap() 213 rspec |= override; in wl_calcRspecFromRTap() 217 return rspec; in wl_calcRspecFromRTap()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
| H A D | rate.h | 115 static inline bool rspec_active(u32 rspec) in rspec_active() argument 117 return rspec & (RSPEC_RATE_MASK | RSPEC_MIMORATE); in rspec_active() 120 static inline u8 rspec_phytxbyte2(u32 rspec) in rspec_phytxbyte2() argument 122 return (rspec & 0xff00) >> 8; in rspec_phytxbyte2() 125 static inline u32 rspec_get_bw(u32 rspec) in rspec_get_bw() argument 127 return (rspec & RSPEC_BW_MASK) >> RSPEC_BW_SHIFT; in rspec_get_bw() 130 static inline bool rspec_issgi(u32 rspec) in rspec_issgi() argument 132 return (rspec & RSPEC_SHORT_GI) == RSPEC_SHORT_GI; in rspec_issgi() 135 static inline bool rspec_is40mhz(u32 rspec) in rspec_is40mhz() argument 137 u32 bw = rspec_get_bw(rspec); in rspec_is40mhz() [all …]
|
| H A D | rate.c | 346 u32 rspec = PHY_TXC1_BW_20MHZ << RSPEC_BW_SHIFT; in brcms_c_compute_rspec() local 355 rspec = in brcms_c_compute_rspec() 360 rspec = in brcms_c_compute_rspec() 365 rspec = (plcp[0] & MIMO_PLCP_MCS_MASK) | RSPEC_MIMORATE; in brcms_c_compute_rspec() 368 rspec &= ~RSPEC_BW_MASK; in brcms_c_compute_rspec() 369 rspec |= (PHY_TXC1_BW_40MHZ << RSPEC_BW_SHIFT); in brcms_c_compute_rspec() 379 rspec |= RSPEC_SHORT_GI; in brcms_c_compute_rspec() 382 rspec = ofdm_phy2mac_rate( in brcms_c_compute_rspec() 385 rspec = cck_phy2mac_rate( in brcms_c_compute_rspec() 388 return rspec; in brcms_c_compute_rspec()
|
| H A D | main.c | 358 static u8 brcms_basic_rate(struct brcms_c_info *wlc, u32 rspec) in brcms_basic_rate() argument 360 if (is_mcs_rate(rspec)) in brcms_basic_rate() 361 return wlc->band->basic_rate[mcs_table[rspec & RSPEC_RATE_MASK] in brcms_basic_rate() 363 return wlc->band->basic_rate[rspec & RSPEC_RATE_MASK]; in brcms_basic_rate() 366 static u16 frametype(u32 rspec, u8 mimoframe) in frametype() argument 368 if (is_mcs_rate(rspec)) in frametype() 370 return is_cck_rate(rspec) ? FT_CCK : FT_OFDM; in frametype() 5682 brcms_c_calc_ack_time(struct brcms_c_info *wlc, u32 rspec, in brcms_c_calc_ack_time() argument 5692 rspec = brcms_basic_rate(wlc, rspec); in brcms_c_calc_ack_time() 5695 brcms_c_calc_frame_time(wlc, rspec, preamble_type, in brcms_c_calc_ack_time() [all …]
|
| H A D | stf.c | 408 u32 rspec) in _brcms_c_stf_phytxchain_sel() argument 412 if (rspec_stf(rspec) != PHY_TXC1_MODE_SISO) in _brcms_c_stf_phytxchain_sel() 420 u16 brcms_c_stf_phytxchain_sel(struct brcms_c_info *wlc, u32 rspec) in brcms_c_stf_phytxchain_sel() argument 422 return _brcms_c_stf_phytxchain_sel(wlc, rspec); in brcms_c_stf_phytxchain_sel() 425 u16 brcms_c_stf_d11hdrs_phyctl_txant(struct brcms_c_info *wlc, u32 rspec) in brcms_c_stf_d11hdrs_phyctl_txant() argument 432 phytxant = _brcms_c_stf_phytxchain_sel(wlc, rspec); in brcms_c_stf_d11hdrs_phyctl_txant()
|
| H A D | stf.h | 34 u16 brcms_c_stf_phytxchain_sel(struct brcms_c_info *wlc, u32 rspec); 35 u16 brcms_c_stf_d11hdrs_phyctl_txant(struct brcms_c_info *wlc, u32 rspec);
|
| H A D | ampdu.c | 646 u32 rspec = 0, rspec_fallback = 0; in brcms_c_ampdu_finalize() local 723 rspec = RSPEC_MIMORATE; in brcms_c_ampdu_finalize() 724 rspec |= plcp[0] & ~MIMO_PLCP_40MHZ; in brcms_c_ampdu_finalize() 726 rspec |= (PHY_TXC1_BW_40MHZ << RSPEC_BW_SHIFT); in brcms_c_ampdu_finalize() 741 brcms_c_rspec_to_rts_rspec(wlc, rspec, in brcms_c_ampdu_finalize() 754 u16 mmodelen = brcms_c_calc_lsig_len(wlc, rspec, in brcms_c_ampdu_finalize() 788 rspec, rts_preamble_type, in brcms_c_ampdu_finalize()
|
| H A D | main.h | 627 u32 brcms_c_rspec_to_rts_rspec(struct brcms_c_info *wlc, u32 rspec,
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/ |
| H A D | dhd_rtt.c | 342 #define RSPEC_BW(rspec) ((rspec) & WL_RSPEC_BW_MASK) argument 343 #define RSPEC_IS20MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_20MHZ) argument 344 #define RSPEC_IS40MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_40MHZ) argument 345 #define RSPEC_IS80MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_80MHZ) argument 346 #define RSPEC_IS160MHZ(rspec) (RSPEC_BW(rspec) == WL_RSPEC_BW_160MHZ) argument 348 #define IS_MCS(rspec) (((rspec) & WL_RSPEC_ENCODING_MASK) != WL_RSPEC_ENCODE_RATE) argument 349 #define IS_STBC(rspec) (((((rspec) & WL_RSPEC_ENCODING_MASK) == WL_RSPEC_ENCODE_HT) || \ argument 350 (((rspec) & WL_RSPEC_ENCODING_MASK) == WL_RSPEC_ENCODE_VHT)) && \ 351 (((rspec) & WL_RSPEC_STBC) == WL_RSPEC_STBC)) 352 #define RSPEC_ISSGI(rspec) (((rspec) & WL_RSPEC_SGI) != 0) argument [all …]
|
| H A D | wl_android.c | 3653 uint32 rspec; in wl_android_get_link_status() local 3688 error = wldev_iovar_getint(dev, "nrate", &rspec); in wl_android_get_link_status() 3689 if (unlikely(error) || rspec == 0) { in wl_android_get_link_status() 3694 encode = (rspec & WL_RSPEC_ENCODING_MASK); in wl_android_get_link_status() 3695 rate = (rspec & WL_RSPEC_RATE_MASK); in wl_android_get_link_status() 3696 txexp = (rspec & WL_RSPEC_TXEXP_MASK) >> WL_RSPEC_TXEXP_SHIFT; in wl_android_get_link_status() 3730 ((rspec & WL_RSPEC_VHT_NSS_MASK) >> WL_RSPEC_VHT_NSS_SHIFT) == 1); in wl_android_get_link_status() 3733 if ((rspec & WL_RSPEC_STBC) && single_stream) { in wl_android_get_link_status()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | dhd_rtt.c | 421 rate_rspec2rate(uint32 rspec) in rate_rspec2rate() argument 425 if (RSPEC_ISLEGACY(rspec)) { in rate_rspec2rate() 426 rate = 500 * (rspec & WL_RSPEC_RATE_MASK); in rate_rspec2rate() 427 } else if (RSPEC_ISHT(rspec)) { in rate_rspec2rate() 428 uint mcs = (rspec & WL_RSPEC_RATE_MASK); in rate_rspec2rate() 431 rate = rate_mcs2rate(mcs, 1, WL_RSPEC_BW_40MHZ, RSPEC_ISSGI(rspec)); in rate_rspec2rate() 435 rate = rate_mcs2rate(mcs, nss, RSPEC_BW(rspec), RSPEC_ISSGI(rspec)); in rate_rspec2rate() 437 } else if (RSPEC_ISVHT(rspec)) { in rate_rspec2rate() 438 uint mcs = (rspec & WL_RSPEC_VHT_MCS_MASK); in rate_rspec2rate() 439 uint nss = (rspec & WL_RSPEC_VHT_NSS_MASK) >> WL_RSPEC_VHT_NSS_SHIFT; in rate_rspec2rate() [all …]
|
| H A D | bcmwifi_radiotap.c | 151 ratespec_t rspec = 0; in wl_calcRspecFromRTap() local 185 rspec = LEGACY_RSPEC(rate) | WL_RSPEC_OVERRIDE_RATE; in wl_calcRspecFromRTap() 187 rspec |= WL_RSPEC_OVERRIDE_MODE | WL_RSPEC_SHORT_PREAMBLE; in wl_calcRspecFromRTap() 201 rspec = HT_RSPEC(mcs) | WL_RSPEC_OVERRIDE_RATE; in wl_calcRspecFromRTap() 205 rspec |= WL_RSPEC_SGI; in wl_calcRspecFromRTap() 208 rspec |= WL_RSPEC_SHORT_PREAMBLE; in wl_calcRspecFromRTap() 211 rspec |= WL_RSPEC_LDPC; in wl_calcRspecFromRTap() 213 rspec |= override; in wl_calcRspecFromRTap() 217 return rspec; in wl_calcRspecFromRTap()
|