Lines Matching refs:wiphy
74 qtnf_validate_iface_combinations(struct wiphy *wiphy, in qtnf_validate_iface_combinations() argument
86 mac = wiphy_priv(wiphy); in qtnf_validate_iface_combinations()
103 ret = cfg80211_check_combinations(wiphy, ¶ms); in qtnf_validate_iface_combinations()
124 qtnf_change_virtual_intf(struct wiphy *wiphy, in qtnf_change_virtual_intf() argument
134 ret = qtnf_validate_iface_combinations(wiphy, vif, type); in qtnf_change_virtual_intf()
159 int qtnf_del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev) in qtnf_del_virtual_intf() argument
196 static struct wireless_dev *qtnf_add_virtual_intf(struct wiphy *wiphy, in qtnf_add_virtual_intf() argument
208 mac = wiphy_priv(wiphy); in qtnf_add_virtual_intf()
213 ret = qtnf_validate_iface_combinations(wiphy, NULL, type); in qtnf_add_virtual_intf()
233 vif->wdev.wiphy = wiphy; in qtnf_add_virtual_intf()
333 static int qtnf_change_beacon(struct wiphy *wiphy, struct net_device *dev, in qtnf_change_beacon() argument
341 static int qtnf_start_ap(struct wiphy *wiphy, struct net_device *dev, in qtnf_start_ap() argument
355 static int qtnf_stop_ap(struct wiphy *wiphy, struct net_device *dev) in qtnf_stop_ap() argument
372 static int qtnf_set_wiphy_params(struct wiphy *wiphy, u32 changed) in qtnf_set_wiphy_params() argument
374 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_set_wiphy_params()
392 qtnf_update_mgmt_frame_registrations(struct wiphy *wiphy, in qtnf_update_mgmt_frame_registrations() argument
446 qtnf_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, in qtnf_mgmt_tx() argument
484 qtnf_get_station(struct wiphy *wiphy, struct net_device *dev, in qtnf_get_station() argument
494 qtnf_dump_station(struct wiphy *wiphy, struct net_device *dev, in qtnf_dump_station() argument
533 static int qtnf_add_key(struct wiphy *wiphy, struct net_device *dev, in qtnf_add_key() argument
549 static int qtnf_del_key(struct wiphy *wiphy, struct net_device *dev, in qtnf_del_key() argument
570 static int qtnf_set_default_key(struct wiphy *wiphy, struct net_device *dev, in qtnf_set_default_key() argument
586 qtnf_set_default_mgmt_key(struct wiphy *wiphy, struct net_device *dev, in qtnf_set_default_mgmt_key() argument
601 qtnf_change_station(struct wiphy *wiphy, struct net_device *dev, in qtnf_change_station() argument
616 qtnf_del_station(struct wiphy *wiphy, struct net_device *dev, in qtnf_del_station() argument
637 qtnf_scan(struct wiphy *wiphy, struct cfg80211_scan_request *request) in qtnf_scan() argument
639 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_scan()
662 qtnf_connect(struct wiphy *wiphy, struct net_device *dev, in qtnf_connect() argument
694 qtnf_external_auth(struct wiphy *wiphy, struct net_device *dev, in qtnf_external_auth() argument
716 qtnf_disconnect(struct wiphy *wiphy, struct net_device *dev, in qtnf_disconnect() argument
719 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_disconnect()
750 qtnf_dump_survey(struct wiphy *wiphy, struct net_device *dev, in qtnf_dump_survey() argument
753 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_dump_survey()
760 sband = wiphy->bands[NL80211_BAND_2GHZ]; in qtnf_dump_survey()
767 sband = wiphy->bands[NL80211_BAND_5GHZ]; in qtnf_dump_survey()
788 qtnf_get_channel(struct wiphy *wiphy, struct wireless_dev *wdev, in qtnf_get_channel() argument
820 static int qtnf_channel_switch(struct wiphy *wiphy, struct net_device *dev, in qtnf_channel_switch() argument
843 static int qtnf_start_radar_detection(struct wiphy *wiphy, in qtnf_start_radar_detection() argument
851 if (wiphy_ext_feature_isset(wiphy, NL80211_EXT_FEATURE_DFS_OFFLOAD)) in qtnf_start_radar_detection()
861 static int qtnf_set_mac_acl(struct wiphy *wiphy, in qtnf_set_mac_acl() argument
875 static int qtnf_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev, in qtnf_set_power_mgmt() argument
889 static int qtnf_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, in qtnf_get_tx_power() argument
902 static int qtnf_set_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, in qtnf_set_tx_power() argument
911 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_set_tx_power()
928 static int qtnf_update_owe_info(struct wiphy *wiphy, struct net_device *dev, in qtnf_update_owe_info() argument
949 static int qtnf_suspend(struct wiphy *wiphy, struct cfg80211_wowlan *wowlan) in qtnf_suspend() argument
951 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_suspend()
981 static int qtnf_resume(struct wiphy *wiphy) in qtnf_resume() argument
983 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_resume()
1005 static void qtnf_set_wakeup(struct wiphy *wiphy, bool enabled) in qtnf_set_wakeup() argument
1007 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_set_wakeup()
1053 static void qtnf_cfg80211_reg_notifier(struct wiphy *wiphy, in qtnf_cfg80211_reg_notifier() argument
1056 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_cfg80211_reg_notifier()
1072 if (!wiphy->bands[band]) in qtnf_cfg80211_reg_notifier()
1075 ret = qtnf_cmd_band_info_get(mac, wiphy->bands[band]); in qtnf_cfg80211_reg_notifier()
1082 struct wiphy *qtnf_wiphy_allocate(struct qtnf_bus *bus, in qtnf_wiphy_allocate()
1085 struct wiphy *wiphy; in qtnf_wiphy_allocate() local
1094 wiphy = wiphy_new(&qtn_cfg80211_ops, sizeof(struct qtnf_wmac)); in qtnf_wiphy_allocate()
1095 if (!wiphy) in qtnf_wiphy_allocate()
1099 set_wiphy_dev(wiphy, &pdev->dev); in qtnf_wiphy_allocate()
1101 set_wiphy_dev(wiphy, bus->dev); in qtnf_wiphy_allocate()
1103 return wiphy; in qtnf_wiphy_allocate()
1107 qtnf_wiphy_setup_if_comb(struct wiphy *wiphy, struct qtnf_mac_info *mac_info) in qtnf_wiphy_setup_if_comb() argument
1127 wiphy->iface_combinations = if_comb; in qtnf_wiphy_setup_if_comb()
1128 wiphy->n_iface_combinations = n_if_comb; in qtnf_wiphy_setup_if_comb()
1129 wiphy->interface_modes = interface_modes; in qtnf_wiphy_setup_if_comb()
1136 struct wiphy *wiphy = priv_to_wiphy(mac); in qtnf_wiphy_register() local
1141 if (!wiphy) { in qtnf_wiphy_register()
1146 wiphy->frag_threshold = macinfo->frag_thr; in qtnf_wiphy_register()
1147 wiphy->rts_threshold = macinfo->rts_thr; in qtnf_wiphy_register()
1148 wiphy->retry_short = macinfo->sretry_limit; in qtnf_wiphy_register()
1149 wiphy->retry_long = macinfo->lretry_limit; in qtnf_wiphy_register()
1150 wiphy->coverage_class = macinfo->coverage_class; in qtnf_wiphy_register()
1152 wiphy->max_scan_ssids = in qtnf_wiphy_register()
1154 wiphy->max_scan_ie_len = QTNF_MAX_VSIE_LEN; in qtnf_wiphy_register()
1155 wiphy->mgmt_stypes = qtnf_mgmt_stypes; in qtnf_wiphy_register()
1156 wiphy->max_remain_on_channel_duration = 5000; in qtnf_wiphy_register()
1157 wiphy->max_acl_mac_addrs = macinfo->max_acl_mac_addrs; in qtnf_wiphy_register()
1158 wiphy->max_num_csa_counters = 2; in qtnf_wiphy_register()
1160 ret = qtnf_wiphy_setup_if_comb(wiphy, macinfo); in qtnf_wiphy_register()
1165 wiphy->cipher_suites = qtnf_cipher_suites; in qtnf_wiphy_register()
1166 wiphy->n_cipher_suites = ARRAY_SIZE(qtnf_cipher_suites); in qtnf_wiphy_register()
1167 wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM; in qtnf_wiphy_register()
1168 wiphy->flags |= WIPHY_FLAG_HAVE_AP_SME | in qtnf_wiphy_register()
1174 wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; in qtnf_wiphy_register()
1178 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_DFS_OFFLOAD); in qtnf_wiphy_register()
1181 wiphy_ext_feature_set(wiphy, in qtnf_wiphy_register()
1184 wiphy->probe_resp_offload = NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS | in qtnf_wiphy_register()
1187 wiphy->available_antennas_tx = macinfo->num_tx_chain; in qtnf_wiphy_register()
1188 wiphy->available_antennas_rx = macinfo->num_rx_chain; in qtnf_wiphy_register()
1190 wiphy->max_ap_assoc_sta = macinfo->max_ap_assoc_sta; in qtnf_wiphy_register()
1191 wiphy->ht_capa_mod_mask = &macinfo->ht_cap_mod_mask; in qtnf_wiphy_register()
1192 wiphy->vht_capa_mod_mask = &macinfo->vht_cap_mod_mask; in qtnf_wiphy_register()
1194 ether_addr_copy(wiphy->perm_addr, mac->macaddr); in qtnf_wiphy_register()
1197 wiphy->features |= NL80211_FEATURE_INACTIVITY_TIMER; in qtnf_wiphy_register()
1200 wiphy->features |= NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR; in qtnf_wiphy_register()
1203 wiphy->features |= NL80211_FEATURE_NEED_OBSS_SCAN; in qtnf_wiphy_register()
1206 wiphy->features |= NL80211_FEATURE_SAE; in qtnf_wiphy_register()
1210 wiphy->wowlan = macinfo->wowlan; in qtnf_wiphy_register()
1217 wiphy->reg_notifier = qtnf_cfg80211_reg_notifier; in qtnf_wiphy_register()
1220 wiphy->regulatory_flags |= REGULATORY_CUSTOM_REG | in qtnf_wiphy_register()
1222 wiphy_apply_custom_regulatory(wiphy, mac->rd); in qtnf_wiphy_register()
1224 wiphy->regulatory_flags |= REGULATORY_STRICT_REG; in qtnf_wiphy_register()
1227 wiphy->regulatory_flags |= REGULATORY_WIPHY_SELF_MANAGED; in qtnf_wiphy_register()
1231 wiphy->extended_capabilities = in qtnf_wiphy_register()
1233 wiphy->extended_capabilities_mask = in qtnf_wiphy_register()
1235 wiphy->extended_capabilities_len = in qtnf_wiphy_register()
1239 strlcpy(wiphy->fw_version, hw_info->fw_version, in qtnf_wiphy_register()
1240 sizeof(wiphy->fw_version)); in qtnf_wiphy_register()
1241 wiphy->hw_version = hw_info->hw_version; in qtnf_wiphy_register()
1243 ret = wiphy_register(wiphy); in qtnf_wiphy_register()
1247 if (wiphy->regulatory_flags & REGULATORY_WIPHY_SELF_MANAGED) in qtnf_wiphy_register()
1248 ret = regulatory_set_wiphy_regd(wiphy, mac->rd); in qtnf_wiphy_register()
1250 ret = regulatory_hint(wiphy, mac->rd->alpha2); in qtnf_wiphy_register()
1268 struct qtnf_wmac *mac = wiphy_priv(vif->wdev.wiphy); in qtnf_virtual_intf_cleanup()
1271 qtnf_disconnect(vif->wdev.wiphy, ndev, in qtnf_virtual_intf_cleanup()
1283 cfg80211_shutdown_all_interfaces(vif->wdev.wiphy); in qtnf_cfg80211_vif_reset()