Lines Matching refs:chspec
72 chanspec_t chspec; in wl_chspec_from_legacy() local
75 chspec = LCHSPEC_CHANNEL(legacy_chspec); in wl_chspec_from_legacy()
79 chspec |= WL_CHANSPEC_BAND_2G; in wl_chspec_from_legacy()
81 chspec |= WL_CHANSPEC_BAND_5G; in wl_chspec_from_legacy()
86 chspec |= WL_CHANSPEC_BW_20; in wl_chspec_from_legacy()
88 chspec |= WL_CHANSPEC_BW_40; in wl_chspec_from_legacy()
90 chspec |= WL_CHANSPEC_CTL_SB_L; in wl_chspec_from_legacy()
92 chspec |= WL_CHANSPEC_CTL_SB_U; in wl_chspec_from_legacy()
96 if (wf_chspec_malformed(chspec)) { in wl_chspec_from_legacy()
98 chspec); in wl_chspec_from_legacy()
102 return chspec; in wl_chspec_from_legacy()
109 wl_chspec_to_legacy(chanspec_t chspec) in wl_chspec_to_legacy() argument
113 if (wf_chspec_malformed(chspec)) { in wl_chspec_to_legacy()
115 chspec); in wl_chspec_to_legacy()
120 lchspec = CHSPEC_CHANNEL(chspec); in wl_chspec_to_legacy()
123 if (CHSPEC_IS2G(chspec)) { in wl_chspec_to_legacy()
130 if (CHSPEC_IS20(chspec)) { in wl_chspec_to_legacy()
133 } else if (CHSPEC_IS40(chspec)) { in wl_chspec_to_legacy()
135 if (CHSPEC_CTL_SB(chspec) == WL_CHANSPEC_CTL_SB_L) { in wl_chspec_to_legacy()
145 wf_chspec_ntoa(chspec, chanbuf), chspec); in wl_chspec_to_legacy()