Lines Matching refs:mac
215 vif->mac->macid, vif->vifid, len); in qtnf_cmd_start_ap_can_fit()
248 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_start_ap()
356 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_start_ap()
357 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_start_ap()
364 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_start_ap()
374 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_stop_ap()
380 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_stop_ap()
381 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_stop_ap()
382 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_stop_ap()
393 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_register_mgmt()
399 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_register_mgmt()
405 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_register_mgmt()
407 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_register_mgmt()
420 pr_warn("VIF%u.%u: frame is too big: %zu\n", vif->mac->macid, in qtnf_cmd_send_frame()
425 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_frame()
431 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_frame()
441 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_frame()
443 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_frame()
455 pr_warn("VIF%u.%u: %u frame is too big: %zu\n", vif->mac->macid, in qtnf_cmd_send_mgmt_set_appie()
460 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_mgmt_set_appie()
468 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_mgmt_set_appie()
469 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_mgmt_set_appie()
470 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_mgmt_set_appie()
709 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_get_sta_info()
715 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_get_sta_info()
720 ret = qtnf_cmd_send_with_reply(vif->mac->bus, cmd_skb, &resp_skb, in qtnf_cmd_get_sta_info()
729 vif->mac->macid, vif->vifid, resp->sta_addr, sta_mac); in qtnf_cmd_get_sta_info()
737 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_get_sta_info()
754 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_add_change_intf()
760 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_add_change_intf()
773 pr_err("VIF%u.%u: unsupported type %d\n", vif->mac->macid, in qtnf_cmd_send_add_change_intf()
784 ret = qtnf_cmd_send_with_reply(vif->mac->bus, cmd_skb, &resp_skb, in qtnf_cmd_send_add_change_intf()
793 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_add_change_intf()
819 struct wiphy *wiphy = priv_to_wiphy(vif->mac); in qtnf_cmd_send_change_intf_type()
825 qtnf_cmd_band_info_get(vif->mac, wiphy->bands[band]); in qtnf_cmd_send_change_intf_type()
838 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_del_intf()
844 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_del_intf()
856 pr_warn("VIF%u.%u: unsupported iftype %d\n", vif->mac->macid, in qtnf_cmd_send_del_intf()
865 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_del_intf()
870 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_del_intf()
975 qtnf_parse_wowlan_info(struct qtnf_wmac *mac, in qtnf_parse_wowlan_info() argument
978 struct qtnf_mac_info *mac_info = &mac->macinfo; in qtnf_parse_wowlan_info()
999 mac->macid, le16_to_cpu(wowlan->version)); in qtnf_parse_wowlan_info()
1006 qtnf_parse_variable_mac_info(struct qtnf_wmac *mac, in qtnf_parse_variable_mac_info() argument
1010 struct ieee80211_iface_combination *comb = mac->macinfo.if_comb; in qtnf_parse_variable_mac_info()
1032 mac->rd = kzalloc(struct_size(mac->rd, reg_rules, resp->n_reg_rules), in qtnf_parse_variable_mac_info()
1034 if (!mac->rd) in qtnf_parse_variable_mac_info()
1037 mac->rd->n_reg_rules = resp->n_reg_rules; in qtnf_parse_variable_mac_info()
1038 mac->rd->alpha2[0] = resp->alpha2[0]; in qtnf_parse_variable_mac_info()
1039 mac->rd->alpha2[1] = resp->alpha2[1]; in qtnf_parse_variable_mac_info()
1043 mac->rd->dfs_region = NL80211_DFS_FCC; in qtnf_parse_variable_mac_info()
1046 mac->rd->dfs_region = NL80211_DFS_ETSI; in qtnf_parse_variable_mac_info()
1049 mac->rd->dfs_region = NL80211_DFS_JP; in qtnf_parse_variable_mac_info()
1053 mac->rd->dfs_region = NL80211_DFS_UNSET; in qtnf_parse_variable_mac_info()
1065 mac->macid); in qtnf_parse_variable_mac_info()
1069 if (n_comb >= mac->macinfo.n_if_comb) { in qtnf_parse_variable_mac_info()
1071 mac->macid); in qtnf_parse_variable_mac_info()
1081 mac->macid, n_comb); in qtnf_parse_variable_mac_info()
1103 mac->macid, n_comb, in qtnf_parse_variable_mac_info()
1128 mac->macid); in qtnf_parse_variable_mac_info()
1135 mac->macid); in qtnf_parse_variable_mac_info()
1139 kfree(mac->macinfo.wowlan); in qtnf_parse_variable_mac_info()
1140 mac->macinfo.wowlan = NULL; in qtnf_parse_variable_mac_info()
1141 qtnf_parse_wowlan_info(mac, wowlan); in qtnf_parse_variable_mac_info()
1157 rule = &mac->rd->reg_rules[rule_idx++]; in qtnf_parse_variable_mac_info()
1162 mac->macid, tlv_type); in qtnf_parse_variable_mac_info()
1172 if (mac->macinfo.n_if_comb != n_comb) { in qtnf_parse_variable_mac_info()
1174 mac->macid, mac->macinfo.n_if_comb, n_comb); in qtnf_parse_variable_mac_info()
1180 mac->macid, ext_capa_len, ext_capa_mask_len); in qtnf_parse_variable_mac_info()
1206 qtnf_mac_ext_caps_free(mac); in qtnf_parse_variable_mac_info()
1207 mac->macinfo.extended_capabilities = ext_capa; in qtnf_parse_variable_mac_info()
1208 mac->macinfo.extended_capabilities_mask = ext_capa_mask; in qtnf_parse_variable_mac_info()
1209 mac->macinfo.extended_capabilities_len = ext_capa_len; in qtnf_parse_variable_mac_info()
1215 qtnf_cmd_resp_proc_mac_info(struct qtnf_wmac *mac, in qtnf_cmd_resp_proc_mac_info() argument
1221 qtnf_mac_iface_comb_free(mac); in qtnf_cmd_resp_proc_mac_info()
1223 mac_info = &mac->macinfo; in qtnf_cmd_resp_proc_mac_info()
1226 ether_addr_copy(mac->macaddr, resp_info->dev_mac); in qtnf_cmd_resp_proc_mac_info()
1228 vif = qtnf_mac_get_base_vif(mac); in qtnf_cmd_resp_proc_mac_info()
1230 ether_addr_copy(vif->mac_addr, mac->macaddr); in qtnf_cmd_resp_proc_mac_info()
1255 mac_info->if_comb = kcalloc(mac->macinfo.n_if_comb, in qtnf_cmd_resp_proc_mac_info()
1256 sizeof(*mac->macinfo.if_comb), in qtnf_cmd_resp_proc_mac_info()
1259 if (!mac->macinfo.if_comb) in qtnf_cmd_resp_proc_mac_info()
1529 int qtnf_cmd_get_mac_info(struct qtnf_wmac *mac) in qtnf_cmd_get_mac_info() argument
1536 cmd_skb = qtnf_cmd_alloc_new_cmdskb(mac->macid, QLINK_VIFID_RSVD, in qtnf_cmd_get_mac_info()
1542 qtnf_bus_lock(mac->bus); in qtnf_cmd_get_mac_info()
1543 ret = qtnf_cmd_send_with_reply(mac->bus, cmd_skb, &resp_skb, in qtnf_cmd_get_mac_info()
1549 ret = qtnf_cmd_resp_proc_mac_info(mac, resp); in qtnf_cmd_get_mac_info()
1553 ret = qtnf_parse_variable_mac_info(mac, resp, var_data_len); in qtnf_cmd_get_mac_info()
1556 qtnf_bus_unlock(mac->bus); in qtnf_cmd_get_mac_info()
1591 int qtnf_cmd_band_info_get(struct qtnf_wmac *mac, in qtnf_cmd_band_info_get() argument
1601 cmd_skb = qtnf_cmd_alloc_new_cmdskb(mac->macid, 0, in qtnf_cmd_band_info_get()
1610 qtnf_bus_lock(mac->bus); in qtnf_cmd_band_info_get()
1611 ret = qtnf_cmd_send_with_reply(mac->bus, cmd_skb, &resp_skb, in qtnf_cmd_band_info_get()
1618 pr_err("MAC%u: reply band %u != cmd band %u\n", mac->macid, in qtnf_cmd_band_info_get()
1627 qtnf_bus_unlock(mac->bus); in qtnf_cmd_band_info_get()
1633 int qtnf_cmd_send_update_phy_params(struct qtnf_wmac *mac, u32 changed) in qtnf_cmd_send_update_phy_params() argument
1635 struct wiphy *wiphy = priv_to_wiphy(mac); in qtnf_cmd_send_update_phy_params()
1639 cmd_skb = qtnf_cmd_alloc_new_cmdskb(mac->macid, 0, in qtnf_cmd_send_update_phy_params()
1645 qtnf_bus_lock(mac->bus); in qtnf_cmd_send_update_phy_params()
1665 ret = qtnf_cmd_send(mac->bus, cmd_skb); in qtnf_cmd_send_update_phy_params()
1667 qtnf_bus_unlock(mac->bus); in qtnf_cmd_send_update_phy_params()
1728 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_add_key()
1734 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_add_key()
1757 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_add_key()
1759 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_add_key()
1771 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_del_key()
1777 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_del_key()
1789 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_del_key()
1791 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_del_key()
1803 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_set_default_key()
1809 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_set_default_key()
1816 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_set_default_key()
1818 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_set_default_key()
1829 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_set_default_mgmt_key()
1835 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_set_default_mgmt_key()
1840 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_set_default_mgmt_key()
1842 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_set_default_mgmt_key()
1868 int qtnf_cmd_send_change_sta(struct qtnf_vif *vif, const u8 *mac, in qtnf_cmd_send_change_sta() argument
1875 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_change_sta()
1881 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_change_sta()
1884 ether_addr_copy(cmd->sta_addr, mac); in qtnf_cmd_send_change_sta()
1904 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_change_sta()
1907 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_change_sta()
1919 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_del_sta()
1925 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_del_sta()
1929 if (params->mac) in qtnf_cmd_send_del_sta()
1930 ether_addr_copy(cmd->sta_addr, params->mac); in qtnf_cmd_send_del_sta()
1937 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_del_sta()
1939 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_del_sta()
1982 int qtnf_cmd_send_scan(struct qtnf_wmac *mac) in qtnf_cmd_send_scan() argument
1984 struct cfg80211_scan_request *scan_req = mac->scan_req; in qtnf_cmd_send_scan()
1996 cmd_skb = qtnf_cmd_alloc_new_cmdskb(mac->macid, QLINK_VIFID_RSVD, in qtnf_cmd_send_scan()
2031 mac->macid, sc->hw_value, sc->center_freq, in qtnf_cmd_send_scan()
2051 mac->macid, in qtnf_cmd_send_scan()
2058 mac->macid, in qtnf_cmd_send_scan()
2064 qtnf_bus_lock(mac->bus); in qtnf_cmd_send_scan()
2065 ret = qtnf_cmd_send(mac->bus, cmd_skb); in qtnf_cmd_send_scan()
2066 qtnf_bus_unlock(mac->bus); in qtnf_cmd_send_scan()
2081 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_connect()
2156 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_connect()
2157 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_connect()
2158 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_connect()
2170 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_external_auth()
2181 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_external_auth()
2182 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_external_auth()
2183 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_external_auth()
2194 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_disconnect()
2200 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_disconnect()
2205 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_disconnect()
2207 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_disconnect()
2218 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_updown_intf()
2227 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_updown_intf()
2228 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_updown_intf()
2229 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_updown_intf()
2234 int qtnf_cmd_reg_notify(struct qtnf_wmac *mac, struct regulatory_request *req, in qtnf_cmd_reg_notify() argument
2237 struct wiphy *wiphy = priv_to_wiphy(mac); in qtnf_cmd_reg_notify()
2238 struct qtnf_bus *bus = mac->bus; in qtnf_cmd_reg_notify()
2245 cmd_skb = qtnf_cmd_alloc_new_cmdskb(mac->macid, QLINK_VIFID_RSVD, in qtnf_cmd_reg_notify()
2406 int qtnf_cmd_get_chan_stats(struct qtnf_wmac *mac, u32 chan_freq, in qtnf_cmd_get_chan_stats() argument
2415 cmd_skb = qtnf_cmd_alloc_new_cmdskb(mac->macid, QLINK_VIFID_RSVD, in qtnf_cmd_get_chan_stats()
2424 qtnf_bus_lock(mac->bus); in qtnf_cmd_get_chan_stats()
2425 ret = qtnf_cmd_send_with_reply(mac->bus, cmd_skb, &resp_skb, in qtnf_cmd_get_chan_stats()
2427 qtnf_bus_unlock(mac->bus); in qtnf_cmd_get_chan_stats()
2436 mac->macid, le32_to_cpu(resp->chan_freq), chan_freq); in qtnf_cmd_get_chan_stats()
2453 struct qtnf_wmac *mac = vif->mac; in qtnf_cmd_send_chan_switch() local
2459 cmd_skb = qtnf_cmd_alloc_new_cmdskb(mac->macid, vif->vifid, in qtnf_cmd_send_chan_switch()
2476 qtnf_bus_lock(mac->bus); in qtnf_cmd_send_chan_switch()
2477 ret = qtnf_cmd_send(mac->bus, cmd_skb); in qtnf_cmd_send_chan_switch()
2478 qtnf_bus_unlock(mac->bus); in qtnf_cmd_send_chan_switch()
2485 struct qtnf_bus *bus = vif->mac->bus; in qtnf_cmd_get_channel()
2491 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_get_channel()
2504 qlink_chandef_q2cfg(priv_to_wiphy(vif->mac), &resp->chan, chdef); in qtnf_cmd_get_channel()
2517 struct qtnf_bus *bus = vif->mac->bus; in qtnf_cmd_start_cac()
2522 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_start_cac()
2542 struct qtnf_bus *bus = vif->mac->bus; in qtnf_cmd_set_mac_acl()
2548 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_set_mac_acl()
2568 struct qtnf_bus *bus = vif->mac->bus; in qtnf_cmd_send_pm_set()
2573 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_pm_set()
2593 struct qtnf_bus *bus = vif->mac->bus; in qtnf_cmd_get_tx_power()
2600 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_get_tx_power()
2628 struct qtnf_bus *bus = vif->mac->bus; in qtnf_cmd_set_tx_power()
2635 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_set_tx_power()
2659 struct qtnf_bus *bus = vif->mac->bus; in qtnf_cmd_send_wowlan_set()
2666 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_wowlan_set()
2704 struct qtnf_bus *bus = vif->mac->bus; in qtnf_cmd_netdev_changeupper()
2709 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_netdev_changeupper()
2716 vif->mac->macid, vif->vifid, br_domain); in qtnf_cmd_netdev_changeupper()
2729 vif->mac->macid, vif->vifid); in qtnf_cmd_netdev_changeupper()
2743 vif->mac->macid, vif->vifid, owe->ie_len); in qtnf_cmd_send_update_owe()
2747 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_update_owe()
2759 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_update_owe()
2760 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); in qtnf_cmd_send_update_owe()
2761 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_update_owe()