Lines Matching refs:drvr
477 struct brcmf_pub *drvr = ifp->drvr; in send_key_to_dongle() local
489 bphy_err(drvr, "wsec_key error (%d)\n", err); in send_key_to_dongle()
505 brcmf_proto_configure_addr_mode(ifp->drvr, ifp->ifidx, in brcmf_cfg80211_update_proto_addr_mode()
508 brcmf_proto_configure_addr_mode(ifp->drvr, ifp->ifidx, in brcmf_cfg80211_update_proto_addr_mode()
512 static int brcmf_get_first_free_bsscfgidx(struct brcmf_pub *drvr) in brcmf_get_first_free_bsscfgidx() argument
520 if (!drvr->iflist[bsscfgidx]) in brcmf_get_first_free_bsscfgidx()
529 struct brcmf_pub *drvr = ifp->drvr; in brcmf_cfg80211_request_ap_if() local
535 bsscfgidx = brcmf_get_first_free_bsscfgidx(ifp->drvr); in brcmf_cfg80211_request_ap_if()
546 bphy_err(drvr, "setting ssid failed %d\n", err); in brcmf_cfg80211_request_ap_if()
564 struct brcmf_pub *drvr = cfg->pub; in brcmf_ap_add_vif() local
590 bphy_err(drvr, "timeout occurred\n"); in brcmf_ap_add_vif()
598 bphy_err(drvr, "no if pointer provided\n"); in brcmf_ap_add_vif()
606 bphy_err(drvr, "Registering netdevice failed\n"); in brcmf_ap_add_vif()
671 ifp->drvr = cfg->pub; in brcmf_mon_add_vif()
714 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_add_iface() local
721 bphy_err(drvr, "iface validation failed: err=%d\n", err); in brcmf_cfg80211_add_iface()
747 bphy_err(drvr, "add iface %s type %d failed: err=%d\n", name, in brcmf_cfg80211_add_iface()
763 struct brcmf_pub *drvr = ifp->drvr; in brcmf_set_mpc() local
769 bphy_err(drvr, "fail to set mpc\n"); in brcmf_set_mpc()
780 struct brcmf_pub *drvr = cfg->pub; in brcmf_notify_escan_complete() local
815 bphy_err(drvr, "Scan abort failed\n"); in brcmf_notify_escan_complete()
860 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_del_ap_iface() local
868 bphy_err(drvr, "interface_remove failed %d\n", err); in brcmf_cfg80211_del_ap_iface()
876 bphy_err(drvr, "timeout occurred\n"); in brcmf_cfg80211_del_ap_iface()
940 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_change_iface() local
980 bphy_err(drvr, "iface validation failed: err=%d\n", err); in brcmf_cfg80211_change_iface()
986 bphy_err(drvr, "type (%d) : currently we do not support this type\n", in brcmf_cfg80211_change_iface()
1015 bphy_err(drvr, "WLC_SET_INFRA error (%d)\n", err); in brcmf_cfg80211_change_iface()
1106 struct brcmf_pub *drvr = cfg->pub; in brcmf_run_escan() local
1138 bphy_err(drvr, "error (%d)\n", err); in brcmf_run_escan()
1149 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_do_escan()
1175 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_scan() local
1185 bphy_err(drvr, "Scanning already: status (%lu)\n", in brcmf_cfg80211_scan()
1190 bphy_err(drvr, "Scanning being aborted: status (%lu)\n", in brcmf_cfg80211_scan()
1195 bphy_err(drvr, "Scanning suppressed: status (%lu)\n", in brcmf_cfg80211_scan()
1200 bphy_err(drvr, "Connecting: status (%lu)\n", vif->sme_state); in brcmf_cfg80211_scan()
1234 bphy_err(drvr, "scan error (%d)\n", err); in brcmf_cfg80211_scan()
1243 struct brcmf_pub *drvr = ifp->drvr; in brcmf_set_rts() local
1248 bphy_err(drvr, "Error (%d)\n", err); in brcmf_set_rts()
1256 struct brcmf_pub *drvr = ifp->drvr; in brcmf_set_frag() local
1262 bphy_err(drvr, "Error (%d)\n", err); in brcmf_set_frag()
1270 struct brcmf_pub *drvr = ifp->drvr; in brcmf_set_retry() local
1276 bphy_err(drvr, "cmd (%d) , error (%d)\n", cmd, err); in brcmf_set_retry()
1352 struct brcmf_pub *drvr = ifp->drvr; in brcmf_set_pmk() local
1367 bphy_err(drvr, "failed to change PSK in firmware (len=%u)\n", in brcmf_set_pmk()
1376 struct brcmf_pub *drvr = ifp->drvr; in brcmf_set_sae_password() local
1381 bphy_err(drvr, "sae_password must be less than %d\n", in brcmf_set_sae_password()
1392 bphy_err(drvr, "failed to set SAE password in firmware (len=%u)\n", in brcmf_set_sae_password()
1402 struct brcmf_pub *drvr = cfg->pub; in brcmf_link_down() local
1403 bool bus_up = drvr->bus_if->state == BRCMF_BUS_UP; in brcmf_link_down()
1414 bphy_err(drvr, "WLC_DISASSOC failed (%d)\n", in brcmf_link_down()
1441 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_join_ibss() local
1506 bphy_err(drvr, "wsec failed (%d)\n", err); in brcmf_cfg80211_join_ibss()
1518 bphy_err(drvr, "WLC_SET_BCNPRD failed (%d)\n", err); in brcmf_cfg80211_join_ibss()
1563 bphy_err(drvr, "WLC_SET_CHANNEL failed (%d)\n", err); in brcmf_cfg80211_join_ibss()
1575 bphy_err(drvr, "WLC_SET_SSID failed (%d)\n", err); in brcmf_cfg80211_join_ibss()
1613 struct brcmf_pub *drvr = ifp->drvr; in brcmf_set_wpa_version() local
1629 bphy_err(drvr, "set wpa_auth failed (%d)\n", err); in brcmf_set_wpa_version()
1642 struct brcmf_pub *drvr = ifp->drvr; in brcmf_set_auth_type() local
1668 bphy_err(drvr, "set auth failed (%d)\n", err); in brcmf_set_auth_type()
1682 struct brcmf_pub *drvr = ifp->drvr; in brcmf_set_wsec_mode() local
1705 bphy_err(drvr, "invalid cipher pairwise (%d)\n", in brcmf_set_wsec_mode()
1726 bphy_err(drvr, "invalid cipher group (%d)\n", in brcmf_set_wsec_mode()
1742 bphy_err(drvr, "error (%d)\n", err); in brcmf_set_wsec_mode()
1758 struct brcmf_pub *drvr = ifp->drvr; in brcmf_set_key_mgmt() local
1777 bphy_err(drvr, "could not get wpa_auth (%d)\n", err); in brcmf_set_key_mgmt()
1791 bphy_err(drvr, "invalid akm suite (%d)\n", in brcmf_set_key_mgmt()
1824 bphy_err(drvr, "invalid akm suite (%d)\n", in brcmf_set_key_mgmt()
1846 bphy_err(drvr, "invalid akm suite (%d)\n", in brcmf_set_key_mgmt()
1893 bphy_err(drvr, "could not set wpa_auth (%d)\n", err); in brcmf_set_key_mgmt()
1905 struct brcmf_pub *drvr = ifp->drvr; in brcmf_set_sharedkey() local
1933 bphy_err(drvr, "Too long key length (%u)\n", key.len); in brcmf_set_sharedkey()
1946 bphy_err(drvr, "Invalid algorithm (%d)\n", in brcmf_set_sharedkey()
1963 bphy_err(drvr, "set auth failed (%d)\n", err); in brcmf_set_sharedkey()
1983 struct brcmf_pub *drvr = ifp->drvr; in brcmf_set_join_pref() local
2022 bphy_err(drvr, "Set join_pref error (%d)\n", err); in brcmf_set_join_pref()
2033 struct brcmf_pub *drvr = ifp->drvr; in brcmf_cfg80211_connect() local
2050 bphy_err(drvr, "Invalid ssid\n"); in brcmf_cfg80211_connect()
2079 bphy_err(drvr, "Set Assoc REQ IE Failed\n"); in brcmf_cfg80211_connect()
2100 bphy_err(drvr, "wl_set_wpa_version failed (%d)\n", err); in brcmf_cfg80211_connect()
2107 bphy_err(drvr, "wl_set_auth_type failed (%d)\n", err); in brcmf_cfg80211_connect()
2113 bphy_err(drvr, "wl_set_set_cipher failed (%d)\n", err); in brcmf_cfg80211_connect()
2119 bphy_err(drvr, "wl_set_key_mgmt failed (%d)\n", err); in brcmf_cfg80211_connect()
2125 bphy_err(drvr, "brcmf_set_sharedkey failed (%d)\n", err); in brcmf_cfg80211_connect()
2143 bphy_err(drvr, "failed to enable fw supplicant\n"); in brcmf_cfg80211_connect()
2155 bphy_err(drvr, "failed to clean up user-space RSNE\n"); in brcmf_cfg80211_connect()
2250 bphy_err(drvr, "BRCMF_C_SET_SSID failed (%d)\n", err); in brcmf_cfg80211_connect()
2266 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_disconnect() local
2283 bphy_err(drvr, "error (%d)\n", err); in brcmf_cfg80211_disconnect()
2296 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_set_tx_power() local
2311 bphy_err(drvr, "TX_POWER_FIXED - dbm is negative\n"); in brcmf_cfg80211_set_tx_power()
2321 bphy_err(drvr, "Unsupported type %d\n", type); in brcmf_cfg80211_set_tx_power()
2329 bphy_err(drvr, "WLC_SET_RADIO error (%d)\n", err); in brcmf_cfg80211_set_tx_power()
2333 bphy_err(drvr, "qtxpower error (%d)\n", err); in brcmf_cfg80211_set_tx_power()
2346 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_get_tx_power() local
2356 bphy_err(drvr, "error (%d)\n", err); in brcmf_cfg80211_get_tx_power()
2372 struct brcmf_pub *drvr = ifp->drvr; in brcmf_cfg80211_config_default_key() local
2384 bphy_err(drvr, "WLC_GET_WSEC error (%d)\n", err); in brcmf_cfg80211_config_default_key()
2394 bphy_err(drvr, "error (%d)\n", err); in brcmf_cfg80211_config_default_key()
2446 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_add_key() local
2461 bphy_err(drvr, "invalid key index (%d)\n", key_idx); in brcmf_cfg80211_add_key()
2470 bphy_err(drvr, "Too long key length (%u)\n", params->key_len); in brcmf_cfg80211_add_key()
2535 bphy_err(drvr, "Invalid cipher (0x%x)\n", params->cipher); in brcmf_cfg80211_add_key()
2546 bphy_err(drvr, "get wsec error (%d)\n", err); in brcmf_cfg80211_add_key()
2552 bphy_err(drvr, "set wsec error (%d)\n", err); in brcmf_cfg80211_add_key()
2572 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_get_key() local
2586 bphy_err(drvr, "WLC_GET_WSEC error (%d)\n", err); in brcmf_cfg80211_get_key()
2607 bphy_err(drvr, "Invalid algo (0x%x)\n", wsec); in brcmf_cfg80211_get_key()
2638 struct brcmf_pub *drvr = ifp->drvr; in brcmf_cfg80211_reconfigure_wep() local
2655 bphy_err(drvr, "Setting WEP key failed (%d)\n", err); in brcmf_cfg80211_reconfigure_wep()
2660 bphy_err(drvr, "get wsec error (%d)\n", err); in brcmf_cfg80211_reconfigure_wep()
2666 bphy_err(drvr, "set wsec error (%d)\n", err); in brcmf_cfg80211_reconfigure_wep()
2692 struct brcmf_pub *drvr = ifp->drvr; in brcmf_fill_bss_param() local
2708 bphy_err(drvr, "Failed to get bss info (%d)\n", err); in brcmf_fill_bss_param()
2730 struct brcmf_pub *drvr = ifp->drvr; in brcmf_cfg80211_get_station_ibss() local
2740 bphy_err(drvr, "BRCMF_C_GET_RATE error (%d)\n", err); in brcmf_cfg80211_get_station_ibss()
2750 bphy_err(drvr, "BRCMF_C_GET_RSSI error (%d)\n", err); in brcmf_cfg80211_get_station_ibss()
2760 bphy_err(drvr, "BRCMF_C_GET_GET_PKTCNTS error (%d)\n", err); in brcmf_cfg80211_get_station_ibss()
2781 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_get_station() local
2811 bphy_err(drvr, "GET STA INFO failed, %d\n", err); in brcmf_cfg80211_get_station()
2882 bphy_err(drvr, "Could not get rssi (%d)\n", in brcmf_cfg80211_get_station()
2904 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_dump_station() local
2917 bphy_info_once(drvr, "BRCMF_C_GET_ASSOCLIST unsupported\n"); in brcmf_cfg80211_dump_station()
2919 bphy_err(drvr, "BRCMF_C_GET_ASSOCLIST failed, err=%d\n", in brcmf_cfg80211_dump_station()
2941 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_set_power_mgmt() local
2970 bphy_err(drvr, "net_device is not ready yet\n"); in brcmf_cfg80211_set_power_mgmt()
2972 bphy_err(drvr, "error (%d)\n", err); in brcmf_cfg80211_set_power_mgmt()
2978 bphy_err(drvr, "Unable to set pm timeout, (%d)\n", err); in brcmf_cfg80211_set_power_mgmt()
2989 struct brcmf_pub *drvr = cfg->pub; in brcmf_inform_single_bss() local
3002 bphy_err(drvr, "Bss info is larger than buffer. Discarding\n"); in brcmf_inform_single_bss()
3061 struct brcmf_pub *drvr = cfg->pub; in brcmf_inform_bss() local
3070 bphy_err(drvr, "Version %d != WL_BSS_INFO_VERSION\n", in brcmf_inform_bss()
3088 struct brcmf_pub *drvr = cfg->pub; in brcmf_inform_ibss() local
3116 bphy_err(drvr, "WLC_GET_BSS_INFO failed: %d\n", err); in brcmf_inform_ibss()
3170 struct brcmf_pub *drvr = cfg->pub; in brcmf_update_bss_info() local
3182 bphy_err(drvr, "Could not get bss info %d\n", err); in brcmf_update_bss_info()
3220 struct brcmf_pub *drvr = cfg->pub; in brcmf_escan_timeout() local
3223 bphy_err(drvr, "timer expired\n"); in brcmf_escan_timeout()
3271 struct brcmf_pub *drvr = ifp->drvr; in brcmf_cfg80211_escan_handler() local
3272 struct brcmf_cfg80211_info *cfg = drvr->config; in brcmf_cfg80211_escan_handler()
3289 bphy_err(drvr, "scan not ready, bsscfgidx=%d\n", in brcmf_cfg80211_escan_handler()
3297 bphy_err(drvr, "invalid event data length\n"); in brcmf_cfg80211_escan_handler()
3302 bphy_err(drvr, "Invalid escan result (NULL pointer)\n"); in brcmf_cfg80211_escan_handler()
3309 bphy_err(drvr, "Invalid escan buffer length: %d\n", in brcmf_cfg80211_escan_handler()
3314 bphy_err(drvr, "Invalid bss_count %d: ignoring\n", in brcmf_cfg80211_escan_handler()
3330 bphy_err(drvr, "Ignoring invalid bss_info length: %d\n", in brcmf_cfg80211_escan_handler()
3339 bphy_err(drvr, "Ignoring IBSS result\n"); in brcmf_cfg80211_escan_handler()
3347 bphy_err(drvr, "Buffer is too small: ignoring\n"); in brcmf_cfg80211_escan_handler()
3451 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_start_internal_escan()
3506 struct brcmf_pub *drvr = ifp->drvr; in brcmf_notify_sched_scan_results() local
3507 struct brcmf_cfg80211_info *cfg = drvr->config; in brcmf_notify_sched_scan_results()
3540 bphy_err(drvr, "FALSE PNO Event. (pfn_count == 0)\n"); in brcmf_notify_sched_scan_results()
3547 bphy_err(drvr, "insufficient event data\n"); in brcmf_notify_sched_scan_results()
3596 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_sched_scan_start() local
3602 bphy_err(drvr, "Scanning suppressed: status=%lu\n", in brcmf_cfg80211_sched_scan_start()
3681 struct brcmf_pub *drvr = ifp->drvr; in brcmf_wowl_nd_results() local
3682 struct brcmf_cfg80211_info *cfg = drvr->config; in brcmf_wowl_nd_results()
3701 bphy_err(drvr, "Invalid result count, expected 1 (%d)\n", in brcmf_wowl_nd_results()
3731 struct brcmf_pub *drvr = cfg->pub; in brcmf_report_wowl_wakeind() local
3742 bphy_err(drvr, "Get wowl_wakeind failed, err = %d\n", err); in brcmf_report_wowl_wakeind()
3783 bphy_err(drvr, "No result for wowl net detect\n"); in brcmf_report_wowl_wakeind()
3990 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_set_pmksa() local
4010 bphy_err(drvr, "Too many PMKSA entries cached %d\n", npmk); in brcmf_cfg80211_set_pmksa()
4030 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_del_pmksa() local
4054 bphy_err(drvr, "Cache entry not found\n"); in brcmf_cfg80211_del_pmksa()
4086 struct brcmf_pub *drvr = ifp->drvr; in brcmf_configure_opensecurity() local
4093 bphy_err(drvr, "auth error %d\n", err); in brcmf_configure_opensecurity()
4099 bphy_err(drvr, "wsec error %d\n", err); in brcmf_configure_opensecurity()
4109 bphy_err(drvr, "wpa_auth error %d\n", err); in brcmf_configure_opensecurity()
4129 struct brcmf_pub *drvr = ifp->drvr; in brcmf_configure_wpaie() local
4160 bphy_err(drvr, "no multicast cipher suite\n"); in brcmf_configure_wpaie()
4166 bphy_err(drvr, "ivalid OUI\n"); in brcmf_configure_wpaie()
4188 bphy_err(drvr, "Invalid multi cast cipher info\n"); in brcmf_configure_wpaie()
4199 bphy_err(drvr, "no unicast cipher suite\n"); in brcmf_configure_wpaie()
4205 bphy_err(drvr, "ivalid OUI\n"); in brcmf_configure_wpaie()
4223 bphy_err(drvr, "Invalid unicast security info\n"); in brcmf_configure_wpaie()
4233 bphy_err(drvr, "no auth key mgmt suite\n"); in brcmf_configure_wpaie()
4239 bphy_err(drvr, "ivalid OUI\n"); in brcmf_configure_wpaie()
4271 bphy_err(drvr, "Invalid key mgmt info\n"); in brcmf_configure_wpaie()
4314 bphy_err(drvr, "wme_bss_disable error %d\n", err); in brcmf_configure_wpaie()
4328 bphy_err(drvr, "bip error %d\n", err); in brcmf_configure_wpaie()
4339 bphy_err(drvr, "auth error %d\n", err); in brcmf_configure_wpaie()
4345 bphy_err(drvr, "wsec error %d\n", err); in brcmf_configure_wpaie()
4354 bphy_err(drvr, "mfp error %d\n", err); in brcmf_configure_wpaie()
4361 bphy_err(drvr, "wpa_auth error %d\n", err); in brcmf_configure_wpaie()
4443 struct brcmf_pub *drvr; in brcmf_vif_set_mgmt_ie() local
4465 drvr = ifp->drvr; in brcmf_vif_set_mgmt_ie()
4502 bphy_err(drvr, "not suitable type\n"); in brcmf_vif_set_mgmt_ie()
4508 bphy_err(drvr, "extra IE size too big\n"); in brcmf_vif_set_mgmt_ie()
4567 bphy_err(drvr, "no space in mgmt_ie_buf: len left %d", in brcmf_vif_set_mgmt_ie()
4597 bphy_err(drvr, "vndr ie set error : %d\n", err); in brcmf_vif_set_mgmt_ie()
4625 struct brcmf_pub *drvr = vif->ifp->drvr; in brcmf_config_ap_mgmt_ie() local
4632 bphy_err(drvr, "Set Beacon IE Failed\n"); in brcmf_config_ap_mgmt_ie()
4642 bphy_err(drvr, "Set Probe Resp IE Failed\n"); in brcmf_config_ap_mgmt_ie()
4707 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_start_ap() local
4773 bphy_err(drvr, "Regulatory Set Error, %d\n", in brcmf_cfg80211_start_ap()
4782 bphy_err(drvr, "Beacon Interval Set Error, %d\n", in brcmf_cfg80211_start_ap()
4791 bphy_err(drvr, "DTIM Interval Set Error, %d\n", in brcmf_cfg80211_start_ap()
4803 bphy_err(drvr, "BRCMF_C_DOWN error %d\n", in brcmf_cfg80211_start_ap()
4812 bphy_err(drvr, "SET INFRA error %d\n", err); in brcmf_cfg80211_start_ap()
4828 bphy_err(drvr, "setting AP mode failed %d\n", in brcmf_cfg80211_start_ap()
4838 bphy_err(drvr, "Set Channel failed: chspec=%d, %d\n", in brcmf_cfg80211_start_ap()
4845 bphy_err(drvr, "BRCMF_C_UP error (%d)\n", err); in brcmf_cfg80211_start_ap()
4871 bphy_err(drvr, "brcmf_parse_configure_security error\n"); in brcmf_cfg80211_start_ap()
4887 bphy_err(drvr, "SET SSID error (%d)\n", err); in brcmf_cfg80211_start_ap()
4894 bphy_err(drvr, "%s closednet error (%d)\n", in brcmf_cfg80211_start_ap()
4905 bphy_err(drvr, "Set Channel failed: chspec=%d, %d\n", in brcmf_cfg80211_start_ap()
4920 bphy_err(drvr, "setting ssid failed %d\n", err); in brcmf_cfg80211_start_ap()
4928 bphy_err(drvr, "bss_enable config failed %d\n", err); in brcmf_cfg80211_start_ap()
4954 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_stop_ap() local
4988 bphy_err(drvr, "SET SSID error (%d)\n", err); in brcmf_cfg80211_stop_ap()
4991 bphy_err(drvr, "BRCMF_C_DOWN error %d\n", err); in brcmf_cfg80211_stop_ap()
4994 bphy_err(drvr, "setting AP mode failed %d\n", err); in brcmf_cfg80211_stop_ap()
5002 bphy_err(drvr, "BRCMF_C_UP error %d\n", err); in brcmf_cfg80211_stop_ap()
5011 bphy_err(drvr, "bss_enable config failed %d\n", err); in brcmf_cfg80211_stop_ap()
5037 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_del_station() local
5057 bphy_err(drvr, "SCB_DEAUTHENTICATE_FOR_REASON failed %d\n", in brcmf_cfg80211_del_station()
5069 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_change_station() local
5090 bphy_err(drvr, "Setting SCB (de-)authorize failed, %d\n", err); in brcmf_cfg80211_change_station()
5114 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_mgmt_tx() local
5135 bphy_err(drvr, "Driver only allows MGMT packet type\n"); in brcmf_cfg80211_mgmt_tx()
5166 bphy_err(drvr, "invalid action frame length\n"); in brcmf_cfg80211_mgmt_tx()
5172 bphy_err(drvr, "unable to allocate frame\n"); in brcmf_cfg80211_mgmt_tx()
5265 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_cancel_remain_on_channel() local
5273 bphy_err(drvr, "No p2p device available for probe response\n"); in brcmf_cfg80211_cancel_remain_on_channel()
5289 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_get_channel() local
5296 if (!ndev || drvr->bus_if->state != BRCMF_BUS_UP) in brcmf_cfg80211_get_channel()
5301 bphy_err(drvr, "chanspec failed (%d)\n", err); in brcmf_cfg80211_get_channel()
5387 brcmf_proto_add_tdls_peer(ifp->drvr, ifp->ifidx, (u8 *)e->addr); in brcmf_notify_tdls_peer_event()
5391 brcmf_proto_delete_peer(ifp->drvr, ifp->ifidx, (u8 *)e->addr); in brcmf_notify_tdls_peer_event()
5424 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_tdls_oper() local
5442 bphy_err(drvr, "tdls_endpoint iovar failed: ret=%d\n", ret); in brcmf_cfg80211_tdls_oper()
5454 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_update_conn_params() local
5465 bphy_err(drvr, "Set Assoc REQ IE Failed\n"); in brcmf_cfg80211_update_conn_params()
5478 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_set_rekey_data() local
5493 bphy_err(drvr, "gtk_key_info iovar failed: ret=%d\n", ret); in brcmf_cfg80211_set_rekey_data()
5872 struct brcmf_pub *drvr = cfg->pub; in brcmf_get_assoc_ies() local
5885 bphy_err(drvr, "could not get assoc info (%d)\n", err); in brcmf_get_assoc_ies()
5893 bphy_err(drvr, "invalid lengths in assoc info: req %u resp %u\n", in brcmf_get_assoc_ies()
5902 bphy_err(drvr, "could not get assoc req (%d)\n", err); in brcmf_get_assoc_ies()
5920 bphy_err(drvr, "could not get assoc resp (%d)\n", err); in brcmf_get_assoc_ies()
6065 struct brcmf_pub *drvr = cfg->pub; in brcmf_notify_connect_status_ap() local
6083 bphy_err(drvr, "No IEs present in ASSOC/REASSOC_IND\n"); in brcmf_notify_connect_status_ap()
6110 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_notify_connect_status()
6120 brcmf_proto_delete_peer(ifp->drvr, ifp->ifidx, (u8 *)e->addr); in brcmf_notify_connect_status()
6174 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_notify_roaming_status()
6255 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_notify_vif_event()
6430 struct brcmf_pub *drvr = ifp->drvr; in brcmf_dongle_roam() local
6437 if (ifp->drvr->settings->roamoff) in brcmf_dongle_roam()
6443 bphy_err(drvr, "bcn_timeout error (%d)\n", err); in brcmf_dongle_roam()
6451 ifp->drvr->settings->roamoff ? "Off" : "On"); in brcmf_dongle_roam()
6453 ifp->drvr->settings->roamoff); in brcmf_dongle_roam()
6455 bphy_err(drvr, "roam_off error (%d)\n", err); in brcmf_dongle_roam()
6464 bphy_err(drvr, "WLC_SET_ROAM_TRIGGER error (%d)\n", err); in brcmf_dongle_roam()
6471 bphy_err(drvr, "WLC_SET_ROAM_DELTA error (%d)\n", err); in brcmf_dongle_roam()
6482 struct brcmf_pub *drvr = ifp->drvr; in brcmf_dongle_scantime() local
6488 bphy_err(drvr, "Scan assoc time error (%d)\n", err); in brcmf_dongle_scantime()
6494 bphy_err(drvr, "Scan unassoc time error (%d)\n", err); in brcmf_dongle_scantime()
6501 bphy_err(drvr, "Scan passive time error (%d)\n", err); in brcmf_dongle_scantime()
6534 struct brcmf_pub *drvr = cfg->pub; in brcmf_construct_chaninfo() local
6535 struct brcmf_if *ifp = brcmf_get_ifp(drvr, 0); in brcmf_construct_chaninfo()
6556 bphy_err(drvr, "get chanspecs error (%d)\n", err); in brcmf_construct_chaninfo()
6571 bphy_err(drvr, "Invalid count of channel Spec. (%u)\n", in brcmf_construct_chaninfo()
6586 bphy_err(drvr, "Invalid channel Spec. 0x%x.\n", in brcmf_construct_chaninfo()
6610 bphy_err(drvr, "Ignoring unexpected firmware channel %d\n", in brcmf_construct_chaninfo()
6667 struct brcmf_pub *drvr = cfg->pub; in brcmf_enable_bw40_2g() local
6668 struct brcmf_if *ifp = brcmf_get_ifp(drvr, 0); in brcmf_enable_bw40_2g()
6714 bphy_err(drvr, "get chanspecs error (%d)\n", err); in brcmf_enable_bw40_2g()
6723 bphy_err(drvr, "Invalid count of channel Spec. (%u)\n", in brcmf_enable_bw40_2g()
6752 struct brcmf_pub *drvr = ifp->drvr; in brcmf_get_bwcap() local
6788 bphy_err(drvr, "invalid mimo_bw_cap value\n"); in brcmf_get_bwcap()
6863 struct brcmf_pub *drvr = cfg->pub; in brcmf_setup_wiphybands() local
6864 struct brcmf_if *ifp = brcmf_get_ifp(drvr, 0); in brcmf_setup_wiphybands()
6881 bphy_err(drvr, "nmode error (%d)\n", err); in brcmf_setup_wiphybands()
6893 bphy_info_once(drvr, "rxchain unsupported\n"); in brcmf_setup_wiphybands()
6895 bphy_err(drvr, "rxchain error (%d)\n", err); in brcmf_setup_wiphybands()
6906 bphy_err(drvr, "brcmf_construct_chaninfo failed (%d)\n", err); in brcmf_setup_wiphybands()
7145 struct brcmf_pub *drvr = cfg->pub; in brcmf_wiphy_wowl_params() local
7151 bphy_err(drvr, "only support basic wowlan features\n"); in brcmf_wiphy_wowl_params()
7174 struct brcmf_pub *drvr = ifp->drvr; in brcmf_setup_wiphy() local
7196 for (i = 0; i < max_interfaces && i < ARRAY_SIZE(drvr->addresses); in brcmf_setup_wiphy()
7198 u8 *addr = drvr->addresses[i].addr; in brcmf_setup_wiphy()
7200 memcpy(addr, drvr->mac, ETH_ALEN); in brcmf_setup_wiphy()
7206 wiphy->addresses = drvr->addresses; in brcmf_setup_wiphy()
7225 if (!ifp->drvr->settings->roamoff) in brcmf_setup_wiphy()
7258 bphy_err(drvr, "could not obtain band info: err=%d\n", err); in brcmf_setup_wiphy()
7314 struct brcmf_pub *drvr = cfg->pub; in brcmf_config_dongle() local
7352 bphy_err(drvr, "failed to set frameburst mode\n"); in brcmf_config_dongle()
7367 return brcmf_config_dongle(ifp->drvr->config); in __brcmf_cfg80211_up()
7372 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in __brcmf_cfg80211_down()
7397 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_cfg80211_up()
7410 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_cfg80211_down()
7482 static bool brmcf_use_iso3166_ccode_fallback(struct brcmf_pub *drvr) in brmcf_use_iso3166_ccode_fallback() argument
7484 if (drvr->settings->trivial_ccode_map) in brmcf_use_iso3166_ccode_fallback()
7487 switch (drvr->bus_if->chip) { in brmcf_use_iso3166_ccode_fallback()
7497 static s32 brcmf_translate_country_code(struct brcmf_pub *drvr, char alpha2[2], in brcmf_translate_country_code() argument
7511 country_codes = drvr->settings->country_codes; in brcmf_translate_country_code()
7513 if (brmcf_use_iso3166_ccode_fallback(drvr)) { in brcmf_translate_country_code()
7558 struct brcmf_pub *drvr = cfg->pub; in brcmf_cfg80211_reg_notifier() local
7570 bphy_err(drvr, "not an ISO3166 code (0x%02x 0x%02x)\n", in brcmf_cfg80211_reg_notifier()
7580 bphy_err(drvr, "Country code iovar returned err = %d\n", err); in brcmf_cfg80211_reg_notifier()
7584 err = brcmf_translate_country_code(ifp->drvr, req->alpha2, &ccreq); in brcmf_cfg80211_reg_notifier()
7590 bphy_err(drvr, "Firmware rejected country setting\n"); in brcmf_cfg80211_reg_notifier()
7622 struct brcmf_cfg80211_info *brcmf_cfg80211_attach(struct brcmf_pub *drvr, in brcmf_cfg80211_attach() argument
7626 struct wiphy *wiphy = drvr->wiphy; in brcmf_cfg80211_attach()
7627 struct net_device *ndev = brcmf_get_ifp(drvr, 0)->ndev; in brcmf_cfg80211_attach()
7636 bphy_err(drvr, "ndev is invalid\n"); in brcmf_cfg80211_attach()
7642 bphy_err(drvr, "Could not allocate wiphy device\n"); in brcmf_cfg80211_attach()
7647 cfg->pub = drvr; in brcmf_cfg80211_attach()
7663 bphy_err(drvr, "Failed to init iwm_priv (%d)\n", err); in brcmf_cfg80211_attach()
7672 bphy_err(drvr, "Failed to get D11 version (%d)\n", err); in brcmf_cfg80211_attach()
7681 drvr->config = cfg; in brcmf_cfg80211_attach()
7706 bphy_err(drvr, "Could not register wiphy device (%d)\n", err); in brcmf_cfg80211_attach()
7712 bphy_err(drvr, "Setting wiphy bands failed (%d)\n", err); in brcmf_cfg80211_attach()
7730 bphy_err(drvr, "FWEH activation failed (%d)\n", err); in brcmf_cfg80211_attach()
7736 bphy_err(drvr, "P2P initialisation failed (%d)\n", err); in brcmf_cfg80211_attach()
7741 bphy_err(drvr, "BT-coex initialisation failed (%d)\n", err); in brcmf_cfg80211_attach()
7747 bphy_err(drvr, "PNO initialisation failed (%d)\n", err); in brcmf_cfg80211_attach()
7767 bphy_err(drvr, "FWEH activation failed (%d)\n", err); in brcmf_cfg80211_attach()