Lines Matching refs:mac
215 vif->mac->macid, vif->vifid, len); in qtnf_cmd_start_ap_can_fit()
249 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_start_ap()
358 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_start_ap()
359 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_start_ap()
366 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_start_ap()
376 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_stop_ap()
382 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_stop_ap()
383 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_stop_ap()
384 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_stop_ap()
395 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_register_mgmt()
401 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_register_mgmt()
407 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_register_mgmt()
409 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_register_mgmt()
422 pr_warn("VIF%u.%u: frame is too big: %zu\n", vif->mac->macid, in qtnf_cmd_send_frame()
427 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_frame()
433 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_frame()
443 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_frame()
445 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_frame()
457 pr_warn("VIF%u.%u: %u frame is too big: %zu\n", vif->mac->macid, in qtnf_cmd_send_mgmt_set_appie()
462 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_mgmt_set_appie()
470 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_mgmt_set_appie()
471 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_mgmt_set_appie()
472 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_mgmt_set_appie()
711 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_get_sta_info()
717 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_get_sta_info()
722 ret = qtnf_cmd_send_with_reply(vif->mac->bus, cmd_skb, &resp_skb, in qtnf_cmd_get_sta_info()
731 vif->mac->macid, vif->vifid, resp->sta_addr, sta_mac); in qtnf_cmd_get_sta_info()
739 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_get_sta_info()
756 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_add_change_intf()
762 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_add_change_intf()
775 pr_err("VIF%u.%u: unsupported type %d\n", vif->mac->macid, in qtnf_cmd_send_add_change_intf()
786 ret = qtnf_cmd_send_with_reply(vif->mac->bus, cmd_skb, &resp_skb, in qtnf_cmd_send_add_change_intf()
795 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_add_change_intf()
821 struct wiphy *wiphy = priv_to_wiphy(vif->mac); in qtnf_cmd_send_change_intf_type()
827 qtnf_cmd_band_info_get(vif->mac, wiphy->bands[band]); in qtnf_cmd_send_change_intf_type()
840 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_del_intf()
846 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_del_intf()
858 pr_warn("VIF%u.%u: unsupported iftype %d\n", vif->mac->macid, in qtnf_cmd_send_del_intf()
867 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_del_intf()
872 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_del_intf()
977 qtnf_parse_wowlan_info(struct qtnf_wmac *mac, in qtnf_parse_wowlan_info() argument
980 struct qtnf_mac_info *mac_info = &mac->macinfo; in qtnf_parse_wowlan_info()
1001 mac->macid, le16_to_cpu(wowlan->version)); in qtnf_parse_wowlan_info()
1008 qtnf_parse_variable_mac_info(struct qtnf_wmac *mac, in qtnf_parse_variable_mac_info() argument
1012 struct ieee80211_iface_combination *comb = mac->macinfo.if_comb; in qtnf_parse_variable_mac_info()
1034 mac->rd = kzalloc(struct_size(mac->rd, reg_rules, resp->n_reg_rules), in qtnf_parse_variable_mac_info()
1036 if (!mac->rd) in qtnf_parse_variable_mac_info()
1039 mac->rd->n_reg_rules = resp->n_reg_rules; in qtnf_parse_variable_mac_info()
1040 mac->rd->alpha2[0] = resp->alpha2[0]; in qtnf_parse_variable_mac_info()
1041 mac->rd->alpha2[1] = resp->alpha2[1]; in qtnf_parse_variable_mac_info()
1045 mac->rd->dfs_region = NL80211_DFS_FCC; in qtnf_parse_variable_mac_info()
1048 mac->rd->dfs_region = NL80211_DFS_ETSI; in qtnf_parse_variable_mac_info()
1051 mac->rd->dfs_region = NL80211_DFS_JP; in qtnf_parse_variable_mac_info()
1055 mac->rd->dfs_region = NL80211_DFS_UNSET; in qtnf_parse_variable_mac_info()
1067 mac->macid); in qtnf_parse_variable_mac_info()
1071 if (n_comb >= mac->macinfo.n_if_comb) { in qtnf_parse_variable_mac_info()
1073 mac->macid); in qtnf_parse_variable_mac_info()
1083 mac->macid, n_comb); in qtnf_parse_variable_mac_info()
1105 mac->macid, n_comb, in qtnf_parse_variable_mac_info()
1130 mac->macid); in qtnf_parse_variable_mac_info()
1137 mac->macid); in qtnf_parse_variable_mac_info()
1141 kfree(mac->macinfo.wowlan); in qtnf_parse_variable_mac_info()
1142 mac->macinfo.wowlan = NULL; in qtnf_parse_variable_mac_info()
1143 qtnf_parse_wowlan_info(mac, wowlan); in qtnf_parse_variable_mac_info()
1159 rule = &mac->rd->reg_rules[rule_idx++]; in qtnf_parse_variable_mac_info()
1164 mac->macid, tlv_type); in qtnf_parse_variable_mac_info()
1174 if (mac->macinfo.n_if_comb != n_comb) { in qtnf_parse_variable_mac_info()
1176 mac->macid, mac->macinfo.n_if_comb, n_comb); in qtnf_parse_variable_mac_info()
1182 mac->macid, ext_capa_len, ext_capa_mask_len); in qtnf_parse_variable_mac_info()
1208 qtnf_mac_ext_caps_free(mac); in qtnf_parse_variable_mac_info()
1209 mac->macinfo.extended_capabilities = ext_capa; in qtnf_parse_variable_mac_info()
1210 mac->macinfo.extended_capabilities_mask = ext_capa_mask; in qtnf_parse_variable_mac_info()
1211 mac->macinfo.extended_capabilities_len = ext_capa_len; in qtnf_parse_variable_mac_info()
1217 qtnf_cmd_resp_proc_mac_info(struct qtnf_wmac *mac, in qtnf_cmd_resp_proc_mac_info() argument
1223 qtnf_mac_iface_comb_free(mac); in qtnf_cmd_resp_proc_mac_info()
1225 mac_info = &mac->macinfo; in qtnf_cmd_resp_proc_mac_info()
1228 ether_addr_copy(mac->macaddr, resp_info->dev_mac); in qtnf_cmd_resp_proc_mac_info()
1230 vif = qtnf_mac_get_base_vif(mac); in qtnf_cmd_resp_proc_mac_info()
1232 ether_addr_copy(vif->mac_addr, mac->macaddr); in qtnf_cmd_resp_proc_mac_info()
1257 mac_info->if_comb = kcalloc(mac->macinfo.n_if_comb, in qtnf_cmd_resp_proc_mac_info()
1258 sizeof(*mac->macinfo.if_comb), in qtnf_cmd_resp_proc_mac_info()
1261 if (!mac->macinfo.if_comb) in qtnf_cmd_resp_proc_mac_info()
1531 int qtnf_cmd_get_mac_info(struct qtnf_wmac *mac) in qtnf_cmd_get_mac_info() argument
1538 cmd_skb = qtnf_cmd_alloc_new_cmdskb(mac->macid, QLINK_VIFID_RSVD, in qtnf_cmd_get_mac_info()
1544 qtnf_bus_lock(mac->bus); in qtnf_cmd_get_mac_info()
1545 ret = qtnf_cmd_send_with_reply(mac->bus, cmd_skb, &resp_skb, in qtnf_cmd_get_mac_info()
1551 ret = qtnf_cmd_resp_proc_mac_info(mac, resp); in qtnf_cmd_get_mac_info()
1555 ret = qtnf_parse_variable_mac_info(mac, resp, var_data_len); in qtnf_cmd_get_mac_info()
1558 qtnf_bus_unlock(mac->bus); in qtnf_cmd_get_mac_info()
1593 int qtnf_cmd_band_info_get(struct qtnf_wmac *mac, in qtnf_cmd_band_info_get() argument
1603 cmd_skb = qtnf_cmd_alloc_new_cmdskb(mac->macid, 0, in qtnf_cmd_band_info_get()
1612 qtnf_bus_lock(mac->bus); in qtnf_cmd_band_info_get()
1613 ret = qtnf_cmd_send_with_reply(mac->bus, cmd_skb, &resp_skb, in qtnf_cmd_band_info_get()
1620 pr_err("MAC%u: reply band %u != cmd band %u\n", mac->macid, in qtnf_cmd_band_info_get()
1629 qtnf_bus_unlock(mac->bus); in qtnf_cmd_band_info_get()
1635 int qtnf_cmd_send_update_phy_params(struct qtnf_wmac *mac, u32 changed) in qtnf_cmd_send_update_phy_params() argument
1637 struct wiphy *wiphy = priv_to_wiphy(mac); in qtnf_cmd_send_update_phy_params()
1641 cmd_skb = qtnf_cmd_alloc_new_cmdskb(mac->macid, 0, in qtnf_cmd_send_update_phy_params()
1647 qtnf_bus_lock(mac->bus); in qtnf_cmd_send_update_phy_params()
1667 ret = qtnf_cmd_send(mac->bus, cmd_skb); in qtnf_cmd_send_update_phy_params()
1669 qtnf_bus_unlock(mac->bus); in qtnf_cmd_send_update_phy_params()
1730 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_add_key()
1736 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_add_key()
1759 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_add_key()
1761 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_add_key()
1773 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_del_key()
1779 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_del_key()
1791 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_del_key()
1793 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_del_key()
1805 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_set_default_key()
1811 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_set_default_key()
1818 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_set_default_key()
1820 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_set_default_key()
1831 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_set_default_mgmt_key()
1837 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_set_default_mgmt_key()
1842 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_set_default_mgmt_key()
1844 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_set_default_mgmt_key()
1870 int qtnf_cmd_send_change_sta(struct qtnf_vif *vif, const u8 *mac, in qtnf_cmd_send_change_sta() argument
1877 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_change_sta()
1883 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_change_sta()
1886 ether_addr_copy(cmd->sta_addr, mac); in qtnf_cmd_send_change_sta()
1906 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_change_sta()
1909 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_change_sta()
1921 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_del_sta()
1927 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_del_sta()
1931 if (params->mac) in qtnf_cmd_send_del_sta()
1932 ether_addr_copy(cmd->sta_addr, params->mac); in qtnf_cmd_send_del_sta()
1939 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_del_sta()
1941 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_del_sta()
1984 int qtnf_cmd_send_scan(struct qtnf_wmac *mac) in qtnf_cmd_send_scan() argument
1986 struct cfg80211_scan_request *scan_req = mac->scan_req; in qtnf_cmd_send_scan()
1998 cmd_skb = qtnf_cmd_alloc_new_cmdskb(mac->macid, QLINK_VIFID_RSVD, in qtnf_cmd_send_scan()
2033 mac->macid, sc->hw_value, sc->center_freq, in qtnf_cmd_send_scan()
2053 mac->macid, in qtnf_cmd_send_scan()
2060 mac->macid, in qtnf_cmd_send_scan()
2066 qtnf_bus_lock(mac->bus); in qtnf_cmd_send_scan()
2067 ret = qtnf_cmd_send(mac->bus, cmd_skb); in qtnf_cmd_send_scan()
2068 qtnf_bus_unlock(mac->bus); in qtnf_cmd_send_scan()
2084 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_connect()
2160 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_connect()
2161 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_connect()
2162 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_connect()
2174 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_external_auth()
2185 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_external_auth()
2186 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_external_auth()
2187 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_external_auth()
2198 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_disconnect()
2204 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_disconnect()
2209 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_disconnect()
2211 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_disconnect()
2222 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_updown_intf()
2231 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_updown_intf()
2232 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_updown_intf()
2233 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_updown_intf()
2238 int qtnf_cmd_reg_notify(struct qtnf_wmac *mac, struct regulatory_request *req, in qtnf_cmd_reg_notify() argument
2241 struct wiphy *wiphy = priv_to_wiphy(mac); in qtnf_cmd_reg_notify()
2242 struct qtnf_bus *bus = mac->bus; in qtnf_cmd_reg_notify()
2249 cmd_skb = qtnf_cmd_alloc_new_cmdskb(mac->macid, QLINK_VIFID_RSVD, in qtnf_cmd_reg_notify()
2410 int qtnf_cmd_get_chan_stats(struct qtnf_wmac *mac, u32 chan_freq, in qtnf_cmd_get_chan_stats() argument
2419 cmd_skb = qtnf_cmd_alloc_new_cmdskb(mac->macid, QLINK_VIFID_RSVD, in qtnf_cmd_get_chan_stats()
2428 qtnf_bus_lock(mac->bus); in qtnf_cmd_get_chan_stats()
2429 ret = qtnf_cmd_send_with_reply(mac->bus, cmd_skb, &resp_skb, in qtnf_cmd_get_chan_stats()
2431 qtnf_bus_unlock(mac->bus); in qtnf_cmd_get_chan_stats()
2440 mac->macid, le32_to_cpu(resp->chan_freq), chan_freq); in qtnf_cmd_get_chan_stats()
2457 struct qtnf_wmac *mac = vif->mac; in qtnf_cmd_send_chan_switch() local
2463 cmd_skb = qtnf_cmd_alloc_new_cmdskb(mac->macid, vif->vifid, in qtnf_cmd_send_chan_switch()
2480 qtnf_bus_lock(mac->bus); in qtnf_cmd_send_chan_switch()
2481 ret = qtnf_cmd_send(mac->bus, cmd_skb); in qtnf_cmd_send_chan_switch()
2482 qtnf_bus_unlock(mac->bus); in qtnf_cmd_send_chan_switch()
2489 struct qtnf_bus *bus = vif->mac->bus; in qtnf_cmd_get_channel()
2495 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_get_channel()
2508 qlink_chandef_q2cfg(priv_to_wiphy(vif->mac), &resp->chan, chdef); in qtnf_cmd_get_channel()
2521 struct qtnf_bus *bus = vif->mac->bus; in qtnf_cmd_start_cac()
2526 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_start_cac()
2546 struct qtnf_bus *bus = vif->mac->bus; in qtnf_cmd_set_mac_acl()
2552 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_set_mac_acl()
2572 struct qtnf_bus *bus = vif->mac->bus; in qtnf_cmd_send_pm_set()
2577 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_pm_set()
2597 struct qtnf_bus *bus = vif->mac->bus; in qtnf_cmd_get_tx_power()
2604 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_get_tx_power()
2632 struct qtnf_bus *bus = vif->mac->bus; in qtnf_cmd_set_tx_power()
2639 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_set_tx_power()
2663 struct qtnf_bus *bus = vif->mac->bus; in qtnf_cmd_send_wowlan_set()
2670 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_wowlan_set()
2708 struct qtnf_bus *bus = vif->mac->bus; in qtnf_cmd_netdev_changeupper()
2713 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_netdev_changeupper()
2720 vif->mac->macid, vif->vifid, br_domain); in qtnf_cmd_netdev_changeupper()
2733 vif->mac->macid, vif->vifid); in qtnf_cmd_netdev_changeupper()
2747 vif->mac->macid, vif->vifid, owe->ie_len); in qtnf_cmd_send_update_owe()
2751 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_update_owe()
2763 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_update_owe()
2764 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_update_owe()
2765 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_update_owe()