• Home
  • Raw
  • Download

Lines Matching refs:mac

78 	struct qtnf_wmac *mac;  in qtnf_validate_iface_combinations()  local
86 mac = wiphy_priv(wiphy); in qtnf_validate_iface_combinations()
87 if (!mac) in qtnf_validate_iface_combinations()
91 vif = &mac->iflist[i]; in qtnf_validate_iface_combinations()
112 vif = qtnf_mac_get_base_vif(mac); in qtnf_validate_iface_combinations()
117 mac->macid); in qtnf_validate_iface_combinations()
137 vif->mac->macid, vif->vifid, type); in qtnf_change_virtual_intf()
146 qtnf_scan_done(vif->mac, true); in qtnf_change_virtual_intf()
151 vif->mac->macid, vif->vifid, type); in qtnf_change_virtual_intf()
170 qtnf_scan_done(vif->mac, true); in qtnf_del_virtual_intf()
186 pr_err("VIF%u.%u: failed to delete VIF\n", vif->mac->macid, in qtnf_del_virtual_intf()
202 struct qtnf_wmac *mac; in qtnf_add_virtual_intf() local
208 mac = wiphy_priv(wiphy); in qtnf_add_virtual_intf()
210 if (!mac) in qtnf_add_virtual_intf()
216 mac->macid, type); in qtnf_add_virtual_intf()
223 vif = qtnf_mac_get_free_vif(mac); in qtnf_add_virtual_intf()
225 pr_err("MAC%u: no free VIF available\n", mac->macid); in qtnf_add_virtual_intf()
237 pr_err("MAC%u: unsupported IF type %d\n", mac->macid, type); in qtnf_add_virtual_intf()
249 mac->macid, vif->vifid, mac_addr); in qtnf_add_virtual_intf()
255 mac->macid, vif->vifid, vif->mac_addr); in qtnf_add_virtual_intf()
260 ret = qtnf_core_net_attach(mac, vif, name, name_assign_t); in qtnf_add_virtual_intf()
262 pr_err("VIF%u.%u: failed to attach netdev\n", mac->macid, in qtnf_add_virtual_intf()
267 if (qtnf_hwcap_is_set(&mac->bus->hw_info, QLINK_HW_CAPAB_HW_BRIDGE)) { in qtnf_add_virtual_intf()
349 pr_err("VIF%u.%u: failed to start AP\n", vif->mac->macid, in qtnf_start_ap()
361 qtnf_scan_done(vif->mac, true); in qtnf_stop_ap()
366 vif->mac->macid, vif->vifid); in qtnf_stop_ap()
375 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_set_wiphy_params() local
379 vif = qtnf_mac_get_base_vif(mac); in qtnf_set_wiphy_params()
381 pr_err("MAC%u: primary VIF is not configured\n", mac->macid); in qtnf_set_wiphy_params()
385 ret = qtnf_cmd_send_update_phy_params(mac, changed); in qtnf_set_wiphy_params()
387 pr_err("MAC%u: failed to update PHY params\n", mac->macid); in qtnf_set_wiphy_params()
439 vif->mac->macid, vif->vifid, reg ? "" : "un", in qtnf_update_mgmt_frame_registrations()
486 const u8 *mac, struct station_info *sinfo) in qtnf_get_station() argument
491 return qtnf_cmd_get_sta_info(vif, mac, sinfo); in qtnf_get_station()
496 int idx, u8 *mac, struct station_info *sinfo) in qtnf_dump_station() argument
507 ether_addr_copy(mac, vif->bssid); in qtnf_dump_station()
514 ether_addr_copy(mac, sta_node->mac_addr); in qtnf_dump_station()
520 ret = qtnf_cmd_get_sta_info(vif, mac, sinfo); in qtnf_dump_station()
524 cfg80211_del_sta(vif->netdev, mac, GFP_KERNEL); in qtnf_dump_station()
544 vif->mac->macid, vif->vifid, params->cipher, key_index, in qtnf_add_key()
561 vif->mac->macid, vif->vifid, key_index); in qtnf_del_key()
564 vif->mac->macid, vif->vifid, in qtnf_del_key()
582 vif->mac->macid, vif->vifid, key_index, unicast, in qtnf_set_default_key()
598 vif->mac->macid, vif->vifid, key_index); in qtnf_set_default_mgmt_key()
605 const u8 *mac, struct station_parameters *params) in qtnf_change_station() argument
610 ret = qtnf_cmd_send_change_sta(vif, mac, params); in qtnf_change_station()
613 vif->mac->macid, vif->vifid, mac); in qtnf_change_station()
625 if (params->mac && in qtnf_del_station()
627 !is_broadcast_ether_addr(params->mac) && in qtnf_del_station()
628 !qtnf_sta_list_lookup(&vif->sta_list, params->mac)) in qtnf_del_station()
634 vif->mac->macid, vif->vifid, params->mac); in qtnf_del_station()
642 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_scan() local
645 cancel_delayed_work_sync(&mac->scan_timeout); in qtnf_scan()
647 mac->scan_req = request; in qtnf_scan()
649 ret = qtnf_cmd_send_scan(mac); in qtnf_scan()
651 pr_err("MAC%u: failed to start scan\n", mac->macid); in qtnf_scan()
652 mac->scan_req = NULL; in qtnf_scan()
656 pr_debug("MAC%u: scan started\n", mac->macid); in qtnf_scan()
657 queue_delayed_work(mac->bus->workqueue, &mac->scan_timeout, in qtnf_scan()
688 vif->mac->macid, vif->vifid); in qtnf_connect()
707 vif->mac->macid, vif->vifid); in qtnf_external_auth()
716 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_disconnect() local
720 vif = qtnf_mac_get_base_vif(mac); in qtnf_disconnect()
722 pr_err("MAC%u: primary VIF is not configured\n", mac->macid); in qtnf_disconnect()
732 mac->macid, vif->vifid); in qtnf_disconnect()
747 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_dump_survey() local
773 ret = qtnf_cmd_get_chan_stats(mac, chan->center_freq, survey); in qtnf_dump_survey()
891 pr_err("MAC%u: failed to get Tx power\n", vif->mac->macid); in qtnf_get_tx_power()
905 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_set_tx_power() local
907 vif = qtnf_mac_get_base_vif(mac); in qtnf_set_tx_power()
910 mac->macid); in qtnf_set_tx_power()
917 pr_err("MAC%u: failed to set Tx power\n", vif->mac->macid); in qtnf_set_tx_power()
934 vif->mac->macid, vif->vifid); in qtnf_update_owe_info()
942 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_suspend() local
946 vif = qtnf_mac_get_base_vif(mac); in qtnf_suspend()
948 pr_err("MAC%u: primary VIF is not configured\n", mac->macid); in qtnf_suspend()
959 qtnf_scan_done(vif->mac, true); in qtnf_suspend()
964 mac->macid); in qtnf_suspend()
974 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_resume() local
978 vif = qtnf_mac_get_base_vif(mac); in qtnf_resume()
980 pr_err("MAC%u: primary VIF is not configured\n", mac->macid); in qtnf_resume()
987 mac->macid); in qtnf_resume()
994 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_set_wakeup() local
995 struct qtnf_bus *bus = mac->bus; in qtnf_set_wakeup()
1043 struct qtnf_wmac *mac = wiphy_priv(wiphy); in qtnf_cfg80211_reg_notifier() local
1047 pr_debug("MAC%u: initiator=%d alpha=%c%c\n", mac->macid, req->initiator, in qtnf_cfg80211_reg_notifier()
1050 ret = qtnf_cmd_reg_notify(mac, req, qtnf_slave_radar_get(), in qtnf_cfg80211_reg_notifier()
1054 mac->macid, req->alpha2[0], req->alpha2[1], ret); in qtnf_cfg80211_reg_notifier()
1062 ret = qtnf_cmd_band_info_get(mac, wiphy->bands[band]); in qtnf_cfg80211_reg_notifier()
1065 mac->macid, band); in qtnf_cfg80211_reg_notifier()
1121 int qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac) in qtnf_wiphy_register() argument
1123 struct wiphy *wiphy = priv_to_wiphy(mac); in qtnf_wiphy_register()
1124 struct qtnf_mac_info *macinfo = &mac->macinfo; in qtnf_wiphy_register()
1181 ether_addr_copy(wiphy->perm_addr, mac->macaddr); in qtnf_wiphy_register()
1200 regdomain_is_known = isalpha(mac->rd->alpha2[0]) && in qtnf_wiphy_register()
1201 isalpha(mac->rd->alpha2[1]); in qtnf_wiphy_register()
1206 if (mac->rd->alpha2[0] == '9' && mac->rd->alpha2[1] == '9') { in qtnf_wiphy_register()
1209 wiphy_apply_custom_regulatory(wiphy, mac->rd); in qtnf_wiphy_register()
1217 if (mac->macinfo.extended_capabilities_len) { in qtnf_wiphy_register()
1219 mac->macinfo.extended_capabilities; in qtnf_wiphy_register()
1221 mac->macinfo.extended_capabilities_mask; in qtnf_wiphy_register()
1223 mac->macinfo.extended_capabilities_len; in qtnf_wiphy_register()
1235 ret = regulatory_set_wiphy_regd(wiphy, mac->rd); in qtnf_wiphy_register()
1237 ret = regulatory_hint(wiphy, mac->rd->alpha2); in qtnf_wiphy_register()
1249 up ? "UP" : "DOWN", vif->mac->macid, vif->vifid); in qtnf_netdev_updown()
1255 struct qtnf_wmac *mac = wiphy_priv(vif->wdev.wiphy); in qtnf_virtual_intf_cleanup() local
1261 qtnf_scan_done(mac, true); in qtnf_virtual_intf_cleanup()