Lines Matching refs:wiphy

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