aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2011-10-05 05:23:05 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2011-11-11 05:50:55 -0500
commita7f0c58b893e29b377e7d453883fb4f3793105cf (patch)
tree9dad3b951b216362adafb0b9db3b337c01d7eb47 /drivers/net/wireless/ath
parentaa6cffc1a275a9369ca83e13cebc4b09e4f23954 (diff)
ath6kl: remove unused parameters from struct wmi
There's no use for these, at least right now, so better to remove them. If some of them are ever needed, we can always add them back. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath6kl/wmi.c27
-rw-r--r--drivers/net/wireless/ath/ath6kl/wmi.h12
2 files changed, 7 insertions, 32 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c
index a7de23cbd2c7..ab782d7aab0f 100644
--- a/drivers/net/wireless/ath/ath6kl/wmi.c
+++ b/drivers/net/wireless/ath/ath6kl/wmi.c
@@ -262,7 +262,12 @@ int ath6kl_wmi_implicit_create_pstream(struct wmi *wmi, struct sk_buff *skb,
262 usr_pri = layer2_priority & 0x7; 262 usr_pri = layer2_priority & 0x7;
263 } 263 }
264 264
265 /* workaround for WMM S5 */ 265 /*
266 * workaround for WMM S5
267 *
268 * FIXME: wmi->traffic_class is always 100 so this test doesn't
269 * make sense
270 */
266 if ((wmi->traffic_class == WMM_AC_VI) && 271 if ((wmi->traffic_class == WMM_AC_VI) &&
267 ((usr_pri == 5) || (usr_pri == 4))) 272 ((usr_pri == 5) || (usr_pri == 4)))
268 usr_pri = 1; 273 usr_pri = 1;
@@ -641,7 +646,6 @@ static int ath6kl_wmi_ready_event_rx(struct wmi *wmi, u8 *datap, int len)
641 if (len < sizeof(struct wmi_ready_event_2)) 646 if (len < sizeof(struct wmi_ready_event_2))
642 return -EINVAL; 647 return -EINVAL;
643 648
644 wmi->ready = true;
645 ath6kl_ready_event(wmi->parent_dev, ev->mac_addr, 649 ath6kl_ready_event(wmi->parent_dev, ev->mac_addr,
646 le32_to_cpu(ev->sw_version), 650 le32_to_cpu(ev->sw_version),
647 le32_to_cpu(ev->abi_version)); 651 le32_to_cpu(ev->abi_version));
@@ -857,8 +861,6 @@ static int ath6kl_wmi_disconnect_event_rx(struct wmi *wmi, u8 *datap, int len)
857 ev->disconn_reason, ev->assoc_resp_len); 861 ev->disconn_reason, ev->assoc_resp_len);
858 862
859 wmi->is_wmm_enabled = false; 863 wmi->is_wmm_enabled = false;
860 wmi->pair_crypto_type = NONE_CRYPT;
861 wmi->grp_crypto_type = NONE_CRYPT;
862 864
863 ath6kl_disconnect_event(wmi->parent_dev, ev->disconn_reason, 865 ath6kl_disconnect_event(wmi->parent_dev, ev->disconn_reason,
864 ev->bssid, ev->assoc_resp_len, ev->assoc_info, 866 ev->bssid, ev->assoc_resp_len, ev->assoc_info,
@@ -1639,9 +1641,6 @@ int ath6kl_wmi_connect_cmd(struct wmi *wmi, enum network_type nw_type,
1639 if (bssid != NULL) 1641 if (bssid != NULL)
1640 memcpy(cc->bssid, bssid, ETH_ALEN); 1642 memcpy(cc->bssid, bssid, ETH_ALEN);
1641 1643
1642 wmi->pair_crypto_type = pairwise_crypto;
1643 wmi->grp_crypto_type = group_crypto;
1644
1645 ret = ath6kl_wmi_cmd_send(wmi, skb, WMI_CONNECT_CMDID, NO_SYNC_WMIFLAG); 1644 ret = ath6kl_wmi_cmd_send(wmi, skb, WMI_CONNECT_CMDID, NO_SYNC_WMIFLAG);
1646 1645
1647 return ret; 1646 return ret;
@@ -2477,7 +2476,6 @@ int ath6kl_wmi_set_keepalive_cmd(struct wmi *wmi, u8 keep_alive_intvl)
2477 2476
2478 cmd = (struct wmi_set_keepalive_cmd *) skb->data; 2477 cmd = (struct wmi_set_keepalive_cmd *) skb->data;
2479 cmd->keep_alive_intvl = keep_alive_intvl; 2478 cmd->keep_alive_intvl = keep_alive_intvl;
2480 wmi->keep_alive_intvl = keep_alive_intvl;
2481 2479
2482 ret = ath6kl_wmi_cmd_send(wmi, skb, WMI_SET_KEEPALIVE_CMDID, 2480 ret = ath6kl_wmi_cmd_send(wmi, skb, WMI_SET_KEEPALIVE_CMDID,
2483 NO_SYNC_WMIFLAG); 2481 NO_SYNC_WMIFLAG);
@@ -2818,7 +2816,6 @@ static int ath6kl_wmi_control_rx_xtnd(struct wmi *wmi, struct sk_buff *skb)
2818 2816
2819 if (skb->len < sizeof(struct wmix_cmd_hdr)) { 2817 if (skb->len < sizeof(struct wmix_cmd_hdr)) {
2820 ath6kl_err("bad packet 1\n"); 2818 ath6kl_err("bad packet 1\n");
2821 wmi->stat.cmd_len_err++;
2822 return -EINVAL; 2819 return -EINVAL;
2823 } 2820 }
2824 2821
@@ -2840,7 +2837,6 @@ static int ath6kl_wmi_control_rx_xtnd(struct wmi *wmi, struct sk_buff *skb)
2840 break; 2837 break;
2841 default: 2838 default:
2842 ath6kl_warn("unknown cmd id 0x%x\n", id); 2839 ath6kl_warn("unknown cmd id 0x%x\n", id);
2843 wmi->stat.cmd_id_err++;
2844 ret = -EINVAL; 2840 ret = -EINVAL;
2845 break; 2841 break;
2846 } 2842 }
@@ -2863,7 +2859,6 @@ int ath6kl_wmi_control_rx(struct wmi *wmi, struct sk_buff *skb)
2863 if (skb->len < sizeof(struct wmi_cmd_hdr)) { 2859 if (skb->len < sizeof(struct wmi_cmd_hdr)) {
2864 ath6kl_err("bad packet 1\n"); 2860 ath6kl_err("bad packet 1\n");
2865 dev_kfree_skb(skb); 2861 dev_kfree_skb(skb);
2866 wmi->stat.cmd_len_err++;
2867 return -EINVAL; 2862 return -EINVAL;
2868 } 2863 }
2869 2864
@@ -3068,7 +3063,6 @@ int ath6kl_wmi_control_rx(struct wmi *wmi, struct sk_buff *skb)
3068 break; 3063 break;
3069 default: 3064 default:
3070 ath6kl_dbg(ATH6KL_DBG_WMI, "unknown cmd id 0x%x\n", id); 3065 ath6kl_dbg(ATH6KL_DBG_WMI, "unknown cmd id 0x%x\n", id);
3071 wmi->stat.cmd_id_err++;
3072 ret = -EINVAL; 3066 ret = -EINVAL;
3073 break; 3067 break;
3074 } 3068 }
@@ -3103,16 +3097,9 @@ void *ath6kl_wmi_init(struct ath6kl *dev)
3103 3097
3104 wmi->parent_dev = dev; 3098 wmi->parent_dev = dev;
3105 3099
3106 ath6kl_wmi_qos_state_init(wmi);
3107
3108 wmi->pwr_mode = REC_POWER; 3100 wmi->pwr_mode = REC_POWER;
3109 wmi->phy_mode = WMI_11G_MODE;
3110 3101
3111 wmi->pair_crypto_type = NONE_CRYPT; 3102 ath6kl_wmi_qos_state_init(wmi);
3112 wmi->grp_crypto_type = NONE_CRYPT;
3113
3114 wmi->ht_allowed[A_BAND_24GHZ] = 1;
3115 wmi->ht_allowed[A_BAND_5GHZ] = 1;
3116 3103
3117 return wmi; 3104 return wmi;
3118} 3105}
diff --git a/drivers/net/wireless/ath/ath6kl/wmi.h b/drivers/net/wireless/ath/ath6kl/wmi.h
index 1600e7c878a4..5166f056ba55 100644
--- a/drivers/net/wireless/ath/ath6kl/wmi.h
+++ b/drivers/net/wireless/ath/ath6kl/wmi.h
@@ -93,11 +93,6 @@ struct sq_threshold_params {
93 u8 last_rssi_poll_event; 93 u8 last_rssi_poll_event;
94}; 94};
95 95
96struct wmi_stats {
97 u32 cmd_len_err;
98 u32 cmd_id_err;
99};
100
101struct wmi_data_sync_bufs { 96struct wmi_data_sync_bufs {
102 u8 traffic_class; 97 u8 traffic_class;
103 struct sk_buff *skb; 98 struct sk_buff *skb;
@@ -111,22 +106,15 @@ struct wmi_data_sync_bufs {
111#define WMM_AC_VO 3 /* voice */ 106#define WMM_AC_VO 3 /* voice */
112 107
113struct wmi { 108struct wmi {
114 bool ready;
115 u16 stream_exist_for_ac[WMM_NUM_AC]; 109 u16 stream_exist_for_ac[WMM_NUM_AC];
116 u8 fat_pipe_exist; 110 u8 fat_pipe_exist;
117 struct ath6kl *parent_dev; 111 struct ath6kl *parent_dev;
118 struct wmi_stats stat;
119 u8 pwr_mode; 112 u8 pwr_mode;
120 u8 phy_mode;
121 u8 keep_alive_intvl;
122 spinlock_t lock; 113 spinlock_t lock;
123 enum htc_endpoint_id ep_id; 114 enum htc_endpoint_id ep_id;
124 struct sq_threshold_params 115 struct sq_threshold_params
125 sq_threshld[SIGNAL_QUALITY_METRICS_NUM_MAX]; 116 sq_threshld[SIGNAL_QUALITY_METRICS_NUM_MAX];
126 enum crypto_type pair_crypto_type;
127 enum crypto_type grp_crypto_type;
128 bool is_wmm_enabled; 117 bool is_wmm_enabled;
129 u8 ht_allowed[A_NUM_BANDS];
130 u8 traffic_class; 118 u8 traffic_class;
131 bool is_probe_ssid; 119 bool is_probe_ssid;
132 120