wmi.c (a7f0c58b893e29b377e7d453883fb4f3793105cf) wmi.c (4b28a80dd6713c404f4f0084007456b769aba553)
1/*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 2393 unchanged lines hidden (view full) ---

2402 return ret;
2403}
2404
2405int ath6kl_wmi_get_tx_pwr_cmd(struct wmi *wmi)
2406{
2407 return ath6kl_wmi_simple_cmd(wmi, WMI_GET_TX_PWR_CMDID);
2408}
2409
1/*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 2393 unchanged lines hidden (view full) ---

2402 return ret;
2403}
2404
2405int ath6kl_wmi_get_tx_pwr_cmd(struct wmi *wmi)
2406{
2407 return ath6kl_wmi_simple_cmd(wmi, WMI_GET_TX_PWR_CMDID);
2408}
2409
2410int ath6kl_wmi_get_roam_tbl_cmd(struct wmi *wmi)
2411{
2412 return ath6kl_wmi_simple_cmd(wmi, WMI_GET_ROAM_TBL_CMDID);
2413}
2414
2410int ath6kl_wmi_set_lpreamble_cmd(struct wmi *wmi, u8 status, u8 preamble_policy)
2411{
2412 struct sk_buff *skb;
2413 struct wmi_set_lpreamble_cmd *cmd;
2414 int ret;
2415
2416 skb = ath6kl_wmi_get_new_buf(sizeof(struct wmi_set_lpreamble_cmd));
2417 if (!skb)

--- 421 unchanged lines hidden (view full) ---

2839 ath6kl_warn("unknown cmd id 0x%x\n", id);
2840 ret = -EINVAL;
2841 break;
2842 }
2843
2844 return ret;
2845}
2846
2415int ath6kl_wmi_set_lpreamble_cmd(struct wmi *wmi, u8 status, u8 preamble_policy)
2416{
2417 struct sk_buff *skb;
2418 struct wmi_set_lpreamble_cmd *cmd;
2419 int ret;
2420
2421 skb = ath6kl_wmi_get_new_buf(sizeof(struct wmi_set_lpreamble_cmd));
2422 if (!skb)

--- 421 unchanged lines hidden (view full) ---

2844 ath6kl_warn("unknown cmd id 0x%x\n", id);
2845 ret = -EINVAL;
2846 break;
2847 }
2848
2849 return ret;
2850}
2851
2852static int ath6kl_wmi_roam_tbl_event_rx(struct wmi *wmi, u8 *datap, int len)
2853{
2854 return ath6kl_debug_roam_tbl_event(wmi->parent_dev, datap, len);
2855}
2856
2847/* Control Path */
2848int ath6kl_wmi_control_rx(struct wmi *wmi, struct sk_buff *skb)
2849{
2850 struct wmi_cmd_hdr *cmd;
2851 u32 len;
2852 u16 id;
2853 u8 *datap;
2854 int ret = 0;

--- 88 unchanged lines hidden (view full) ---

2943 ath6kl_dbg(ATH6KL_DBG_WMI, "WMI_ERROR_REPORT_EVENTID\n");
2944 break;
2945 case WMI_OPT_RX_FRAME_EVENTID:
2946 ath6kl_dbg(ATH6KL_DBG_WMI, "WMI_OPT_RX_FRAME_EVENTID\n");
2947 /* this event has been deprecated */
2948 break;
2949 case WMI_REPORT_ROAM_TBL_EVENTID:
2950 ath6kl_dbg(ATH6KL_DBG_WMI, "WMI_REPORT_ROAM_TBL_EVENTID\n");
2857/* Control Path */
2858int ath6kl_wmi_control_rx(struct wmi *wmi, struct sk_buff *skb)
2859{
2860 struct wmi_cmd_hdr *cmd;
2861 u32 len;
2862 u16 id;
2863 u8 *datap;
2864 int ret = 0;

--- 88 unchanged lines hidden (view full) ---

2953 ath6kl_dbg(ATH6KL_DBG_WMI, "WMI_ERROR_REPORT_EVENTID\n");
2954 break;
2955 case WMI_OPT_RX_FRAME_EVENTID:
2956 ath6kl_dbg(ATH6KL_DBG_WMI, "WMI_OPT_RX_FRAME_EVENTID\n");
2957 /* this event has been deprecated */
2958 break;
2959 case WMI_REPORT_ROAM_TBL_EVENTID:
2960 ath6kl_dbg(ATH6KL_DBG_WMI, "WMI_REPORT_ROAM_TBL_EVENTID\n");
2961 ret = ath6kl_wmi_roam_tbl_event_rx(wmi, datap, len);
2951 break;
2952 case WMI_EXTENSION_EVENTID:
2953 ath6kl_dbg(ATH6KL_DBG_WMI, "WMI_EXTENSION_EVENTID\n");
2954 ret = ath6kl_wmi_control_rx_xtnd(wmi, skb);
2955 break;
2956 case WMI_CAC_EVENTID:
2957 ath6kl_dbg(ATH6KL_DBG_WMI, "WMI_CAC_EVENTID\n");
2958 ret = ath6kl_wmi_cac_event_rx(wmi, datap, len);

--- 156 unchanged lines hidden ---
2962 break;
2963 case WMI_EXTENSION_EVENTID:
2964 ath6kl_dbg(ATH6KL_DBG_WMI, "WMI_EXTENSION_EVENTID\n");
2965 ret = ath6kl_wmi_control_rx_xtnd(wmi, skb);
2966 break;
2967 case WMI_CAC_EVENTID:
2968 ath6kl_dbg(ATH6KL_DBG_WMI, "WMI_CAC_EVENTID\n");
2969 ret = ath6kl_wmi_cac_event_rx(wmi, datap, len);

--- 156 unchanged lines hidden ---