/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/common/ |
H A D | mac_regdomain.c | 161 mac_regclass_info_stru *mac_get_channel_idx_rc_info(hi_u8 band, hi_u8 ch_idx) in mac_get_channel_idx_rc_info() argument 165 if (mac_is_channel_idx_valid(band, ch_idx, ®_class) != HI_SUCCESS) { in mac_get_channel_idx_rc_info() 179 hi_void mac_get_channel_num_from_idx(hi_u8 band, hi_u8 idx, hi_u8 *puc_channel_num) in mac_get_channel_num_from_idx() argument 181 if (band == MAC_RC_START_FREQ_2) { in mac_get_channel_num_from_idx() 196 hi_u32 mac_get_channel_idx_from_num(hi_u8 band, hi_u8 channel_num, hi_u8 *puc_channel_idx) in mac_get_channel_idx_from_num() argument 203 switch (band) { in mac_get_channel_idx_from_num() 228 hi_u32 mac_is_channel_idx_valid(hi_u8 band, hi_u8 ch_idx, hi_u8 *reg_class) in mac_is_channel_idx_valid() argument 233 switch (band) { in mac_is_channel_idx_valid() 264 hi_u32 mac_is_channel_num_valid(hi_u8 band, hi_u8 ch_num) in mac_is_channel_num_valid() argument 269 ret = mac_get_channel_idx_from_num(band, ch_nu in mac_is_channel_num_valid() 286 mac_get_channel_num_rc_info(hi_u8 band, hi_u8 ch_num) mac_get_channel_num_rc_info() argument [all...] |
H A D | mac_regdomain.h | 180 hi_void mac_get_channel_num_from_idx(hi_u8 band, hi_u8 idx, hi_u8 *puc_channel_num); 183 hi_u32 mac_is_channel_idx_valid(hi_u8 band, hi_u8 ch_idx, hi_u8 *reg_class); 184 hi_u32 mac_is_channel_num_valid(hi_u8 band, hi_u8 ch_num); 185 hi_u32 mac_get_channel_idx_from_num(hi_u8 band, hi_u8 channel_num, hi_u8 *puc_channel_idx); 187 mac_regclass_info_stru *mac_get_channel_num_rc_info(hi_u8 band, hi_u8 ch_num); 212 static inline hi_u8 mac_get_num_supp_channel(wlan_channel_band_enum_uint8 band) in mac_get_num_supp_channel() argument 214 switch (band) { in mac_get_num_supp_channel() 225 static inline hi_u8 mac_get_affected_ch_idx_offset(wlan_channel_band_enum_uint8 band) in mac_get_affected_ch_idx_offset() argument 227 switch (band) { in mac_get_affected_ch_idx_offset()
|
H A D | mac_vap.c | 1187 mac_vap->channel.band = WLAN_BAND_BUTT; in mac_vap_init_mode() 1240 mac_vap->channel.band = WLAN_BAND_2G; in mac_vap_init_mib() 1970 if ((WLAN_BAND_2G == mac_vap->channel.band) && (mac_user->cap_info.erp_use_protect == HI_TRUE)) { in mac_vap_get_user_protection_mode() 2046 rts_tx_param->band = WLAN_BAND_2G; in mac_protection_set_rts_tx_param() 2060 rts_tx_param->band = WLAN_BAND_2G; in mac_protection_set_rts_tx_param() 2072 rts_tx_param->band = mac_vap->channel.band; in mac_protection_set_rts_tx_param() 2083 if (WLAN_BAND_2G == rts_tx_param->band) { in mac_protection_set_rts_tx_param() 2159 hi_u32 mac_vap_set_current_channel(mac_vap_stru *mac_vap, wlan_channel_band_enum_uint8 band, hi_u8 channel) in mac_vap_set_current_channel() argument 2165 ret = mac_is_channel_num_valid(band, channe in mac_vap_set_current_channel() [all...] |
H A D | mac_cfg.h | 37 #define MAC_NUM_2G_BAND 3 /* 2g band个数 */ 533 wlan_channel_band_enum_uint8 band; /* 频带 */ member 542 hi_u8 band; member 568 wlan_channel_band_enum_uint8 band; /* 频带 */ member
|
/device/soc/rockchip/rk2206/adapter/hals/communication/wifi_lite/wifiservice/source/ |
H A D | wifi_hotspot.c | 162 WifiErrorCode SetBand(int band) in SetBand() argument 164 if (band != HOTSPOT_BAND_TYPE_2G) { in SetBand() 170 g_apConfig.band = band; in SetBand() 187 if (g_apConfig.band == 0) { in GetBand() 203 int GetSignalLevel(int rssi, int band) in GetSignalLevel() argument 205 if (band == HOTSPOT_BAND_TYPE_2G) { in GetSignalLevel() 220 if (band == HOTSPOT_BAND_TYPE_5G) { in GetSignalLevel()
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/wal/ |
H A D | wal_mac80211.c | 119 enum Ieee80211Band band;
in GetChannelByFreq() local 122 for (band = (enum Ieee80211Band)0; band < IEEE80211_NUM_BANDS; band++) {
in GetChannelByFreq() 123 currentBand = wiphy->bands[band];
in GetChannelByFreq() 141 enum Ieee80211Band band = IEEE80211_BAND_2GHZ;
in WifiScanSetChannel() local 145 if (wiphy->bands[band] == NULL) {
in WifiScanSetChannel() 146 oam_error_log(0, OAM_SF_ANY, "%s:invalid band info", __func__);
in WifiScanSetChannel() 150 for (loop = 0; loop < (int32_t)wiphy->bands[band]->n_channels; loop++) {
in WifiScanSetChannel() 151 chan = &wiphy->bands[band] in WifiScanSetChannel() 249 enum Ieee80211Band band; WalGetChannel() local 620 WalGetValidFreqsWithBand(NetDevice *netDev, int32_t band, int32_t *freqs, uint32_t *num) WalGetValidFreqsWithBand() argument 794 oal_ieee80211_supported_band *band = GET_NET_DEV_CFG80211_WIRELESS(netDev)->wiphy->bands[IEEE80211_BAND_2GHZ]; WalGetHwCapability() local [all...] |
H A D | wal_11d.c | 215 static inline hi_u32 wal_regdomain_get_channel(hi_u8 band, hi_u32 start_freq, hi_u32 end_freq) in wal_regdomain_get_channel() argument 217 if (band == MAC_RC_START_FREQ_2) { in wal_regdomain_get_channel() 263 hi_u8 band; in wal_regdomain_fill_info() local 279 band = wal_regdomain_get_band(start, end); in wal_regdomain_fill_info() 286 mac_regdom->ast_regclass[i].start_freq = band; in wal_regdomain_fill_info() 291 mac_regdom->ast_regclass[i].channel_bmap = wal_regdomain_get_channel(band, start, end); in wal_regdomain_fill_info()
|
H A D | wal_scan.c | 197 enum ieee80211_band band = (enum ieee80211_band)scanned_bss->bss_dscr_info.channel.band; in wal_inform_all_bss() local 200 if (mac_is_channel_num_valid(band, chan) != HI_SUCCESS) { in wal_inform_all_bss() 201 oam_warning_log2(vap_id, OAM_SF_SCAN, "{wal_inform_all_bss::chan=%d,band=%d not in regdomain}", chan, band); in wal_inform_all_bss() 218 scanned_bss_info.s_freq = (hi_s16)oal_ieee80211_channel_to_frequency(chan, band); in wal_inform_all_bss()
|
H A D | wal_cfg80211.h | 157 .band = IEEE80211_BAND_2GHZ, \ 167 .band = IEEE80211_BAND_5GHZ, \ 177 .band = IEEE80211_BAND_5GHZ, \
|
/device/soc/hisilicon/hi3861v100/hi3861_adapter/hals/communication/wifi_lite/wifiservice/source/ |
H A D | wifi_hotspot.c | 285 WifiErrorCode SetBand(int band) in SetBand() argument 287 if (band != HOTSPOT_BAND_TYPE_2G) { in SetBand() 293 g_wifiApConfig.band = band; in SetBand() 309 if (g_wifiApConfig.band == 0) { in GetBand() 322 int GetSignalLevel(int rssi, int band) in GetSignalLevel() argument 324 if (band == HOTSPOT_BAND_TYPE_2G) { in GetSignalLevel() 339 if (band == HOTSPOT_BAND_TYPE_5G) { in GetSignalLevel()
|
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/ |
H A D | wl_roam.c | 100 void set_roam_band(int band) in set_roam_band() argument 102 roam_band = band; in set_roam_band() 300 void wl_update_roamscan_cache_by_band(struct net_device *dev, int band) in wl_update_roamscan_cache_by_band() argument 306 roam_band = band; in wl_update_roamscan_cache_by_band() 315 /* in case of WES mode, update channel list by band based on the cache in DHD */ in wl_update_roamscan_cache_by_band() 327 if (band == WLC_BAND_AUTO) { in wl_update_roamscan_cache_by_band() 338 /* filtering by the given band */ in wl_update_roamscan_cache_by_band() 343 bool band_match = ((band == WLC_BAND_AUTO) || in wl_update_roamscan_cache_by_band() 344 ((band == WLC_BAND_2G) && is_2G) || in wl_update_roamscan_cache_by_band() 345 ((band in wl_update_roamscan_cache_by_band() [all...] |
H A D | wldev_common.c | 382 struct net_device *dev, uint band) in wldev_set_band() 386 if ((band == WLC_BAND_AUTO) || (band == WLC_BAND_5G) || (band == WLC_BAND_2G)) { in wldev_set_band() 387 error = wldev_ioctl_set(dev, WLC_SET_BAND, &band, sizeof(band)); in wldev_set_band() 389 dhd_bus_band_set(dev, band); in wldev_set_band() 416 uint16 band = 0; in wldev_get_mode() local 438 band = chanspec & WL_CHANSPEC_BAND_MASK; in wldev_get_mode() 441 if (band in wldev_get_mode() 381 wldev_set_band( struct net_device *dev, uint band) wldev_set_band() argument [all...] |
H A D | bcmwifi_channels.c | 61 * [<band> 'g'] <channel> ['/'<bandwidth> [<primary-sideband>]['/'<1st80channel>'-'<2nd80channel>]] 63 * <band>: 72 * (only for 2.4GHz band 40MHz) U for upper sideband primary, L for lower. 74 * For 2.4GHz band 40MHz channels, the same primary channel may be the 79 * For 40MHz in the 5GHz band and all channel bandwidths greater than 81 * non-overlapping and the primary sub-band is derived from its 87 * Specifies the center channel of the primary and secondary 80MHz band. 89 * In its simplest form, it is a 20MHz channel number, with the implied band 144 /* 40MHz channels in 5GHz band */ 150 /* 80MHz channels in 5GHz band */ 305 const char *band; wf_chspec_ntoa() local 811 wf_create_20MHz_chspec(uint channel, chanspec_band_t band) wf_create_20MHz_chspec() argument [all...] |
H A D | wl_android.c | 597 extern void wl_update_roamscan_cache_by_band(struct net_device *dev, int band); 908 uint16 band = 0; in wl_android_get_chanspec() local 925 band = chanspec & WL_CHANSPEC_BAND_MASK; in wl_android_get_chanspec() 928 ANDROID_INFO(("wl_android_get_80211_mode: channel:%d band:%d bandwidth:%d\n", in wl_android_get_chanspec() 929 channel, band, bw)); in wl_android_get_chanspec() 960 bytes_written = snprintf(command, total_len, "%s channel %d band %s bw %d", CMD_CHANSPEC, in wl_android_get_chanspec() 961 channel, band == WL_CHANSPEC_BAND_5G ? "5G":"2G", bw); in wl_android_get_chanspec() 1168 uint band; in wl_android_get_band() local 1172 error = wldev_get_band(dev, &band); in wl_android_get_band() 1175 bytes_written = snprintf(command, total_len, "Band %d", band); in wl_android_get_band() 1184 uint band = *(command + strlen(CMD_SETBAND) + 1) - '0'; wl_android_set_band() local 3016 uint32 band = WLC_BAND_2G, sta_band = WLC_BAND_2G; wl_android_set_auto_channel() local 5567 u32 band; wl_nan_ranging_bw() member [all...] |
H A D | wldev_common.h | 105 extern void dhd_bus_band_set(struct net_device *dev, uint band); 133 int wldev_set_band(struct net_device *dev, uint band);
|
H A D | wl_cfg80211.c | 892 void set_roam_band(int band); 1035 .band = IEEE80211_BAND_2GHZ, \ 1044 .band = IEEE80211_BAND_5GHZ, \ 1116 .band = IEEE80211_BAND_2GHZ, 1124 .band = IEEE80211_BAND_5GHZ, 1324 /* convert the band */ in wl_chspec_from_legacy() 1369 /* convert the band */ in wl_chspec_to_legacy() 1431 chanspec_band_t band; in wl_ch_host_to_driver() local 1433 band = WL_CHANNEL_BAND(channel); in wl_ch_host_to_driver() 1435 chanspec = wf_create_20MHz_chspec(channel, band); in wl_ch_host_to_driver() 6563 int band; wl_cfg80211_connect() local 6671 u16 channel, band, bw, ctl_sb; wl_cfg80211_connect() local 9868 wl_get_bandwidth_cap(struct net_device *ndev, uint32 band, uint32 *bandwidth) wl_get_bandwidth_cap() argument 9874 u32 band; wl_get_bandwidth_cap() member 12645 struct ieee80211_supported_band *band; wl_cfg80211_dump_survey() local 13383 struct ieee80211_supported_band *band; wl_inform_single_bss() local 13798 struct ieee80211_supported_band *band; wl_notify_connect_status_ap_auth() local 13914 struct ieee80211_supported_band *band; wl_notify_connect_status_ap() local 14191 struct ieee80211_supported_band *band; wl_notify_connect_status_bss() local 14373 u32 freq, band; wl_notify_connect_status_ibss() local 14590 struct ieee80211_supported_band *band; wl_notify_connect_status_mesh() local 15834 u32 freq, band; wl_update_bss_info() local 15935 struct ieee80211_supported_band *band; wl_bss_roaming_done() local 16626 struct ieee80211_supported_band *band; wl_notify_rx_mgmt_frame() local 17333 u32 band; global() member 17365 u32 band; wl_cfg80211_ril_bridge_notifier_call() local 17626 u32 band = 0; wl_cfg80211_determine_p2p_rsdb_mode() local 18627 u32 i, j, index, n_2g, n_5g, band, channel, array_size; wl_construct_reginfo() local 19896 u16 band = 0; wl_cfg80211_channel_to_freq() local 20403 int channel = 0, band, band_cur; wl_cfg80211_get_best_channels() local 20780 wl_cfg80211_set_band(struct net_device *ndev, int band) wl_cfg80211_set_band() argument 20805 wl_cfg80211_set_if_band(struct net_device *ndev, int band) wl_cfg80211_set_if_band() argument 24072 u32 band = 0; wl_cfg80211_get_concurrency_mode() local 24272 u32 band = 0; wl_cfg80211_channel_switch() local [all...] |
H A D | dhd_pno.c | 735 int *nchan, uint8 band, bool skip_dfs) in _dhd_pno_get_channels() 755 if (!(band & WLC_BAND_2G)) { in _dhd_pno_get_channels() 763 (!(band & WLC_BAND_5G) && !dfs_channel)) { in _dhd_pno_get_channels() 766 * the band 5G is not set & the channel is a non DFS 5G channel in _dhd_pno_get_channels() 1039 params->params_batch.band = WLC_BAND_AUTO; in _dhd_pno_reinitialize_prof() 1071 params->params_batch.band = WLC_BAND_AUTO; in _dhd_pno_reinitialize_prof() 1547 if (batch_params->band == WLC_BAND_2G || batch_params->band == WLC_BAND_5G) { in dhd_pno_set_for_batch() 1548 /* get a valid channel list based on band B or A */ in dhd_pno_set_for_batch() 1551 &rem_nchan, batch_params->band, FALS in dhd_pno_set_for_batch() 734 _dhd_pno_get_channels(dhd_pub_t *dhd, uint16 *d_chan_list, int *nchan, uint8 band, bool skip_dfs) _dhd_pno_get_channels() argument 1911 uint16 band; dhd_pno_set_cfg_gscan() local 2985 uint8 band = 0; dhd_pno_get_gscan() local [all...] |
/device/board/hihope/rk3568/wifi/bcmdhd_wifi6/hdfadapt/ |
H A D | hdf_bdh_mac80211.c | 368 int32_t Bdh6Fband(NetDevice *hnetDev, int32_t band, int32_t *freqs, uint32_t *num) in Bdh6Fband() argument 386 HDF_LOGI("%s: start..., band=%d", __func__, band); in Bdh6Fband() 387 switch (band) { in Bdh6Fband() 406 HDF_LOGE("%s: no support band!", __func__); in Bdh6Fband() 412 static int32_t FillBdhBandInfo(const struct ieee80211_supported_band *band, enum Ieee80211Band bnum, in FillBdhBandInfo() argument 418 OsalMemCalloc(sizeof(struct WlanBand) + (sizeof(struct WlanChannel) * band->n_channels)); in FillBdhBandInfo() 425 hwCapability->htCapability = band->ht_cap.cap; in FillBdhBandInfo() 427 hwCapability->bands[bnum]->channelCount = band->n_channels; in FillBdhBandInfo() 428 for (loop = 0; loop < band in FillBdhBandInfo() 639 enum Ieee80211Band band; GetChannelByFreq() local 723 enum Ieee80211Band band = IEEE80211_BAND_2GHZ; FillAllValidChannels() local 917 enum Ieee80211Band band = IEEE80211_BAND_2GHZ; WalGetChannel() local [all...] |
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/ |
H A D | oal_net.c | 264 enum ieee80211_band band :频段 266 hi_s32 oal_ieee80211_channel_to_frequency(hi_s32 l_channel, wlan_channel_band_enum_uint8 band) in oal_ieee80211_channel_to_frequency() argument 274 switch (band) { in oal_ieee80211_channel_to_frequency() 314 } else if (l_center_freq <= 45000) { /* DMG band lower limit */ /* 45000:代表频率 */ in oal_ieee80211_frequency_to_channel() 330 ieee80211_band_uint8 band; in oal_ieee80211_get_channel() local 333 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in oal_ieee80211_get_channel() 334 sband = wiphy->bands[band]; in oal_ieee80211_get_channel()
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/hmac/ |
H A D | hmac_fsm.c | 81 cfg_mode.band = hmac_vap->preset_para.band; in hmac_fsm_change_state()
|
H A D | hmac_chan_mgmt.c | 210 ret = mac_get_channel_idx_from_num(mac_vap->channel.band, set_chan->channel.chan_number, &idx); in hmac_chan_do_sync() 401 if (hmac_vap->base_vap->channel.band == WLAN_BAND_2G) { in hmac_start_bss_in_available_channel() 440 ret = mac_is_channel_num_valid(mac_vap->channel.band, channel); in hmac_chan_start_bss() 554 ret = mac_get_channel_idx_from_num(mac_vap->channel.band, set_chan->channel.chan_number, &idx); in hmac_chan_switch_to_new_chan_complete() 570 l_freq = oal_ieee80211_channel_to_frequency(mac_vap->channel.chan_number, mac_vap->channel.band); in hmac_chan_switch_to_new_chan_complete() 683 hi_u32 check = mac_is_channel_num_valid(mac_vap->channel.band, new_chan); in hmac_ie_proc_ch_switch_ie()
|
H A D | hmac_mgmt_sta.c | 285 mac_vap_set_current_channel(mac_vap, join_req->bss_dscr.channel.band, join_req->bss_dscr.channel.chan_number); in hmac_sta_update_join_channel() 294 mac_vap->channel.band = join_req->bss_dscr.channel.band; in hmac_sta_update_join_channel() 326 if (!(mac_vap->channel.band == WLAN_BAND_2G && mac_vap->cap_flag.disable_2ght40) && in hmac_sta_update_join_protocol() 332 cfg_mode.band = join_req->bss_dscr.channel.band; in hmac_sta_update_join_protocol() 355 cfg_mode.band = mac_vap->channel.band; in hmac_sta_update_join_protocol() 393 reg_params->current_channel.band = mac_vap->channel.band; in hmac_sta_dispatch_join_req() 1963 wlan_channel_bandwidth_enum_uint8 band; hmac_sta_get_band() local [all...] |
H A D | hmac_config.c | 275 oam_warning_log2(0, 0, "band: %x G, bandwidth: %x M[80A=80+,80B=80-,80AB=80+-]", in hmac_config_vap_info() 276 (mac_vap->channel.band == WLAN_BAND_2G) ? 2 : 0xFF, bandwidth); /* 只支持2G,其他返回异常值0XFF */ in hmac_config_vap_info() 668 start_vap_param.band = mac_vap->channel.band; in hmac_config_start_vap_event() 713 prot_param.band = mac_vap->channel.band; in hmac_set_mode_event() 719 "{hmac_set_mode_event::mode_set failed[%d],protocol[%d], band[%d], bandwidth[%d].}", ret, in hmac_set_mode_event() 720 mac_vap->protocol, mac_vap->channel.band, in hmac_set_mode_event() 1251 if (((mac_vap->channel.band == WLAN_BAND_BUTT) || in hmac_config_def_chan() 1255 param.band in hmac_config_def_chan() [all...] |
/device/soc/rockchip/rk2206/hardware/include/lz_hardware/ |
H A D | wifi.h | 38 /** Frequency band */ 39 int band; member
|
/device/qemu/drivers/virtio/ |
H A D | virtnet.c | 592 static int32_t FakeWalGetValidFreqsWithBand(NetDevice *netDev, int32_t band, int32_t *freqs, uint32_t *num) in FakeWalGetValidFreqsWithBand() argument 596 if (band != FAKE_MAGIC_BAND) { in FakeWalGetValidFreqsWithBand() 597 HDF_LOGE("[%s]unsupported WLAN band: %dMHz", __func__, band); in FakeWalGetValidFreqsWithBand() 607 struct WlanBand band; member 625 p->cap.bands[0] = &p->band; in FakeWalGetHwCapability() 629 p->band.channelCount = 1; in FakeWalGetHwCapability()
|