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,
373 static int qtnf_set_wiphy_params(struct wiphy *wiphy, u32 changed)
375 struct qtnf_wmac *mac = wiphy_priv(wiphy);
393 qtnf_update_mgmt_frame_registrations(struct wiphy *wiphy,
447 qtnf_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
485 qtnf_get_station(struct wiphy *wiphy, struct net_device *dev,
495 qtnf_dump_station(struct wiphy *wiphy, struct net_device *dev,
534 static int qtnf_add_key(struct wiphy *wiphy, struct net_device *dev,
550 static int qtnf_del_key(struct wiphy *wiphy, struct net_device *dev,
572 static int qtnf_set_default_key(struct wiphy *wiphy, struct net_device *dev,
589 qtnf_set_default_mgmt_key(struct wiphy *wiphy, struct net_device *dev,
604 qtnf_change_station(struct wiphy *wiphy, struct net_device *dev,
619 qtnf_del_station(struct wiphy *wiphy, struct net_device *dev,
640 qtnf_scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
642 struct qtnf_wmac *mac = wiphy_priv(wiphy);
665 qtnf_connect(struct wiphy *wiphy, struct net_device *dev,
694 qtnf_external_auth(struct wiphy *wiphy, struct net_device *dev,
713 qtnf_disconnect(struct wiphy *wiphy, struct net_device *dev,
716 struct qtnf_wmac *mac = wiphy_priv(wiphy);
744 qtnf_dump_survey(struct wiphy *wiphy, struct net_device *dev,
747 struct qtnf_wmac *mac = wiphy_priv(wiphy);
754 sband = wiphy->bands[NL80211_BAND_2GHZ];
761 sband = wiphy->bands[NL80211_BAND_5GHZ];
782 qtnf_get_channel(struct wiphy *wiphy, struct wireless_dev *wdev,
814 static int qtnf_channel_switch(struct wiphy *wiphy, struct net_device *dev,
837 static int qtnf_start_radar_detection(struct wiphy *wiphy,
845 if (wiphy_ext_feature_isset(wiphy, NL80211_EXT_FEATURE_DFS_OFFLOAD))
855 static int qtnf_set_mac_acl(struct wiphy *wiphy,
869 static int qtnf_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev,
883 static int qtnf_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
896 static int qtnf_set_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
905 struct qtnf_wmac *mac = wiphy_priv(wiphy);
922 static int qtnf_update_owe_info(struct wiphy *wiphy, struct net_device *dev,
940 static int qtnf_suspend(struct wiphy *wiphy, struct cfg80211_wowlan *wowlan)
942 struct qtnf_wmac *mac = wiphy_priv(wiphy);
972 static int qtnf_resume(struct wiphy *wiphy)
974 struct qtnf_wmac *mac = wiphy_priv(wiphy);
992 static void qtnf_set_wakeup(struct wiphy *wiphy, bool enabled)
994 struct qtnf_wmac *mac = wiphy_priv(wiphy);
1040 static void qtnf_cfg80211_reg_notifier(struct wiphy *wiphy,
1043 struct qtnf_wmac *mac = wiphy_priv(wiphy);
1059 if (!wiphy->bands[band])
1062 ret = qtnf_cmd_band_info_get(mac, wiphy->bands[band]);
1069 struct wiphy *qtnf_wiphy_allocate(struct qtnf_bus *bus,
1072 struct wiphy *wiphy;
1081 wiphy = wiphy_new(&qtn_cfg80211_ops, sizeof(struct qtnf_wmac));
1082 if (!wiphy)
1086 set_wiphy_dev(wiphy, &pdev->dev);
1088 set_wiphy_dev(wiphy, bus->dev);
1090 return wiphy;
1094 qtnf_wiphy_setup_if_comb(struct wiphy *wiphy, struct qtnf_mac_info *mac_info)
1114 wiphy->iface_combinations = if_comb;
1115 wiphy->n_iface_combinations = n_if_comb;
1116 wiphy->interface_modes = interface_modes;
1123 struct wiphy *wiphy = priv_to_wiphy(mac);
1128 if (!wiphy) {
1129 pr_err("invalid wiphy pointer\n");
1133 wiphy->frag_threshold = macinfo->frag_thr;
1134 wiphy->rts_threshold = macinfo->rts_thr;
1135 wiphy->retry_short = macinfo->sretry_limit;
1136 wiphy->retry_long = macinfo->lretry_limit;
1137 wiphy->coverage_class = macinfo->coverage_class;
1139 wiphy->max_scan_ssids =
1141 wiphy->max_scan_ie_len = QTNF_MAX_VSIE_LEN;
1142 wiphy->mgmt_stypes = qtnf_mgmt_stypes;
1143 wiphy->max_remain_on_channel_duration = 5000;
1144 wiphy->max_acl_mac_addrs = macinfo->max_acl_mac_addrs;
1145 wiphy->max_num_csa_counters = 2;
1147 ret = qtnf_wiphy_setup_if_comb(wiphy, macinfo);
1152 wiphy->cipher_suites = qtnf_cipher_suites;
1153 wiphy->n_cipher_suites = ARRAY_SIZE(qtnf_cipher_suites);
1154 wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM;
1155 wiphy->flags |= WIPHY_FLAG_HAVE_AP_SME |
1161 wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT;
1165 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_DFS_OFFLOAD);
1168 wiphy_ext_feature_set(wiphy,
1171 wiphy->probe_resp_offload = NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS |
1174 wiphy->available_antennas_tx = macinfo->num_tx_chain;
1175 wiphy->available_antennas_rx = macinfo->num_rx_chain;
1177 wiphy->max_ap_assoc_sta = macinfo->max_ap_assoc_sta;
1178 wiphy->ht_capa_mod_mask = &macinfo->ht_cap_mod_mask;
1179 wiphy->vht_capa_mod_mask = &macinfo->vht_cap_mod_mask;
1181 ether_addr_copy(wiphy->perm_addr, mac->macaddr);
1184 wiphy->features |= NL80211_FEATURE_INACTIVITY_TIMER;
1187 wiphy->features |= NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR;
1190 wiphy->features |= NL80211_FEATURE_NEED_OBSS_SCAN;
1193 wiphy->features |= NL80211_FEATURE_SAE;
1197 wiphy->wowlan = macinfo->wowlan;
1204 wiphy->reg_notifier = qtnf_cfg80211_reg_notifier;
1207 wiphy->regulatory_flags |= REGULATORY_CUSTOM_REG |
1209 wiphy_apply_custom_regulatory(wiphy, mac->rd);
1211 wiphy->regulatory_flags |= REGULATORY_STRICT_REG;
1214 wiphy->regulatory_flags |= REGULATORY_WIPHY_SELF_MANAGED;
1218 wiphy->extended_capabilities =
1220 wiphy->extended_capabilities_mask =
1222 wiphy->extended_capabilities_len =
1226 strscpy(wiphy->fw_version, hw_info->fw_version,
1227 sizeof(wiphy->fw_version));
1228 wiphy->hw_version = hw_info->hw_version;
1230 ret = wiphy_register(wiphy);
1234 if (wiphy->regulatory_flags & REGULATORY_WIPHY_SELF_MANAGED)
1235 ret = regulatory_set_wiphy_regd(wiphy, mac->rd);
1237 ret = regulatory_hint(wiphy, mac->rd->alpha2);
1255 struct qtnf_wmac *mac = wiphy_priv(vif->wdev.wiphy);
1258 qtnf_disconnect(vif->wdev.wiphy, ndev,
1270 cfg80211_shutdown_all_interfaces(vif->wdev.wiphy);