ath6kl: fix blank lines before and after braces
Fixes checkpatch warnings:
CHECK: Blank lines aren't necessary after an open brace '{'
CHECK: Blank lines aren't necessary before a close brace '}'
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
@@ -970,7 +970,6 @@ static int ath6kl_set_probed_ssids(struct ath6kl *ar,
|
|||||||
ssid_list[i].flag,
|
ssid_list[i].flag,
|
||||||
ssid_list[i].ssid.ssid_len,
|
ssid_list[i].ssid.ssid_len,
|
||||||
ssid_list[i].ssid.ssid);
|
ssid_list[i].ssid.ssid);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make sure no old entries are left behind */
|
/* Make sure no old entries are left behind */
|
||||||
@@ -1897,7 +1896,6 @@ static int ath6kl_wow_usr(struct ath6kl *ar, struct ath6kl_vif *vif,
|
|||||||
|
|
||||||
/* Configure the patterns that we received from the user. */
|
/* Configure the patterns that we received from the user. */
|
||||||
for (i = 0; i < wow->n_patterns; i++) {
|
for (i = 0; i < wow->n_patterns; i++) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Convert given nl80211 specific mask value to equivalent
|
* Convert given nl80211 specific mask value to equivalent
|
||||||
* driver specific mask value and send it to the chip along
|
* driver specific mask value and send it to the chip along
|
||||||
@@ -2897,7 +2895,6 @@ static int ath6kl_start_ap(struct wiphy *wiphy, struct net_device *dev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (info->inactivity_timeout) {
|
if (info->inactivity_timeout) {
|
||||||
|
|
||||||
inactivity_timeout = info->inactivity_timeout;
|
inactivity_timeout = info->inactivity_timeout;
|
||||||
|
|
||||||
if (ar->hw.flags & ATH6KL_HW_AP_INACTIVITY_MINS)
|
if (ar->hw.flags & ATH6KL_HW_AP_INACTIVITY_MINS)
|
||||||
|
|||||||
@@ -172,7 +172,6 @@ void ath6kl_dump_registers(struct ath6kl_device *dev,
|
|||||||
struct ath6kl_irq_proc_registers *irq_proc_reg,
|
struct ath6kl_irq_proc_registers *irq_proc_reg,
|
||||||
struct ath6kl_irq_enable_reg *irq_enable_reg)
|
struct ath6kl_irq_enable_reg *irq_enable_reg)
|
||||||
{
|
{
|
||||||
|
|
||||||
ath6kl_dbg(ATH6KL_DBG_IRQ, ("<------- Register Table -------->\n"));
|
ath6kl_dbg(ATH6KL_DBG_IRQ, ("<------- Register Table -------->\n"));
|
||||||
|
|
||||||
if (irq_proc_reg != NULL) {
|
if (irq_proc_reg != NULL) {
|
||||||
@@ -219,7 +218,6 @@ void ath6kl_dump_registers(struct ath6kl_device *dev,
|
|||||||
"GMBOX lookahead alias 1: 0x%x\n",
|
"GMBOX lookahead alias 1: 0x%x\n",
|
||||||
irq_proc_reg->rx_gmbox_lkahd_alias[1]);
|
irq_proc_reg->rx_gmbox_lkahd_alias[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (irq_enable_reg != NULL) {
|
if (irq_enable_reg != NULL) {
|
||||||
@@ -1396,7 +1394,6 @@ static ssize_t ath6kl_create_qos_write(struct file *file,
|
|||||||
const char __user *user_buf,
|
const char __user *user_buf,
|
||||||
size_t count, loff_t *ppos)
|
size_t count, loff_t *ppos)
|
||||||
{
|
{
|
||||||
|
|
||||||
struct ath6kl *ar = file->private_data;
|
struct ath6kl *ar = file->private_data;
|
||||||
struct ath6kl_vif *vif;
|
struct ath6kl_vif *vif;
|
||||||
char buf[200];
|
char buf[200];
|
||||||
@@ -1575,7 +1572,6 @@ static ssize_t ath6kl_delete_qos_write(struct file *file,
|
|||||||
const char __user *user_buf,
|
const char __user *user_buf,
|
||||||
size_t count, loff_t *ppos)
|
size_t count, loff_t *ppos)
|
||||||
{
|
{
|
||||||
|
|
||||||
struct ath6kl *ar = file->private_data;
|
struct ath6kl *ar = file->private_data;
|
||||||
struct ath6kl_vif *vif;
|
struct ath6kl_vif *vif;
|
||||||
char buf[100];
|
char buf[100];
|
||||||
|
|||||||
@@ -97,8 +97,8 @@ static inline void ath6kl_dump_registers(struct ath6kl_device *dev,
|
|||||||
struct ath6kl_irq_proc_registers *irq_proc_reg,
|
struct ath6kl_irq_proc_registers *irq_proc_reg,
|
||||||
struct ath6kl_irq_enable_reg *irq_en_reg)
|
struct ath6kl_irq_enable_reg *irq_en_reg)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void dump_cred_dist_stats(struct htc_target *target)
|
static inline void dump_cred_dist_stats(struct htc_target *target)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ static int ath6kl_hif_cp_scat_dma_buf(struct hif_scatter_req *req,
|
|||||||
buf = req->virt_dma_buf;
|
buf = req->virt_dma_buf;
|
||||||
|
|
||||||
for (i = 0; i < req->scat_entries; i++) {
|
for (i = 0; i < req->scat_entries; i++) {
|
||||||
|
|
||||||
if (from_dma)
|
if (from_dma)
|
||||||
memcpy(req->scat_list[i].buf, buf,
|
memcpy(req->scat_list[i].buf, buf,
|
||||||
req->scat_list[i].len);
|
req->scat_list[i].len);
|
||||||
@@ -116,7 +115,6 @@ static void ath6kl_hif_dump_fw_crash(struct ath6kl *ar)
|
|||||||
le32_to_cpu(regdump_val[i + 2]),
|
le32_to_cpu(regdump_val[i + 2]),
|
||||||
le32_to_cpu(regdump_val[i + 3]));
|
le32_to_cpu(regdump_val[i + 3]));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ath6kl_hif_proc_dbg_intr(struct ath6kl_device *dev)
|
static int ath6kl_hif_proc_dbg_intr(struct ath6kl_device *dev)
|
||||||
@@ -701,5 +699,4 @@ int ath6kl_hif_setup(struct ath6kl_device *dev)
|
|||||||
|
|
||||||
fail_setup:
|
fail_setup:
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,7 +129,6 @@ static void ath6kl_credit_init(struct ath6kl_htc_credit_info *cred_info,
|
|||||||
count = (count * 3) >> 2;
|
count = (count * 3) >> 2;
|
||||||
count = max(count, cur_ep_dist->cred_per_msg);
|
count = max(count, cur_ep_dist->cred_per_msg);
|
||||||
cur_ep_dist->cred_norm = count;
|
cur_ep_dist->cred_norm = count;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ath6kl_dbg(ATH6KL_DBG_CREDIT,
|
ath6kl_dbg(ATH6KL_DBG_CREDIT,
|
||||||
@@ -549,7 +548,6 @@ static int htc_check_credits(struct htc_target *target,
|
|||||||
enum htc_endpoint_id eid, unsigned int len,
|
enum htc_endpoint_id eid, unsigned int len,
|
||||||
int *req_cred)
|
int *req_cred)
|
||||||
{
|
{
|
||||||
|
|
||||||
*req_cred = (len > target->tgt_cred_sz) ?
|
*req_cred = (len > target->tgt_cred_sz) ?
|
||||||
DIV_ROUND_UP(len, target->tgt_cred_sz) : 1;
|
DIV_ROUND_UP(len, target->tgt_cred_sz) : 1;
|
||||||
|
|
||||||
@@ -608,7 +606,6 @@ static void ath6kl_htc_tx_pkts_get(struct htc_target *target,
|
|||||||
unsigned int len;
|
unsigned int len;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
||||||
flags = 0;
|
flags = 0;
|
||||||
|
|
||||||
if (list_empty(&endpoint->txq))
|
if (list_empty(&endpoint->txq))
|
||||||
@@ -889,7 +886,6 @@ static void ath6kl_htc_tx_from_queue(struct htc_target *target,
|
|||||||
ac = target->dev->ar->ep2ac_map[endpoint->eid];
|
ac = target->dev->ar->ep2ac_map[endpoint->eid];
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
||||||
if (list_empty(&endpoint->txq))
|
if (list_empty(&endpoint->txq))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -1190,7 +1186,6 @@ static void ath6kl_htc_mbox_flush_txep(struct htc_target *target,
|
|||||||
list_add_tail(&packet->list, &container);
|
list_add_tail(&packet->list, &container);
|
||||||
htc_tx_complete(endpoint, &container);
|
htc_tx_complete(endpoint, &container);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ath6kl_htc_flush_txep_all(struct htc_target *target)
|
static void ath6kl_htc_flush_txep_all(struct htc_target *target)
|
||||||
@@ -1394,7 +1389,6 @@ static int ath6kl_htc_rx_setup(struct htc_target *target,
|
|||||||
|
|
||||||
ep_cb = ep->ep_cb;
|
ep_cb = ep->ep_cb;
|
||||||
for (j = 0; j < n_msg; j++) {
|
for (j = 0; j < n_msg; j++) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Reset flag, any packets allocated using the
|
* Reset flag, any packets allocated using the
|
||||||
* rx_alloc() API cannot be recycled on
|
* rx_alloc() API cannot be recycled on
|
||||||
@@ -1487,7 +1481,6 @@ static int ath6kl_htc_rx_alloc(struct htc_target *target,
|
|||||||
spin_lock_bh(&target->rx_lock);
|
spin_lock_bh(&target->rx_lock);
|
||||||
|
|
||||||
for (i = 0; i < msg; i++) {
|
for (i = 0; i < msg; i++) {
|
||||||
|
|
||||||
htc_hdr = (struct htc_frame_hdr *)&lk_ahds[i];
|
htc_hdr = (struct htc_frame_hdr *)&lk_ahds[i];
|
||||||
|
|
||||||
if (htc_hdr->eid >= ENDPOINT_MAX) {
|
if (htc_hdr->eid >= ENDPOINT_MAX) {
|
||||||
@@ -1708,7 +1701,6 @@ static int htc_parse_trailer(struct htc_target *target,
|
|||||||
lk_ahd = (struct htc_lookahead_report *) record_buf;
|
lk_ahd = (struct htc_lookahead_report *) record_buf;
|
||||||
if ((lk_ahd->pre_valid == ((~lk_ahd->post_valid) & 0xFF)) &&
|
if ((lk_ahd->pre_valid == ((~lk_ahd->post_valid) & 0xFF)) &&
|
||||||
next_lk_ahds) {
|
next_lk_ahds) {
|
||||||
|
|
||||||
ath6kl_dbg(ATH6KL_DBG_HTC,
|
ath6kl_dbg(ATH6KL_DBG_HTC,
|
||||||
"htc rx lk_ahd found pre_valid 0x%x post_valid 0x%x\n",
|
"htc rx lk_ahd found pre_valid 0x%x post_valid 0x%x\n",
|
||||||
lk_ahd->pre_valid, lk_ahd->post_valid);
|
lk_ahd->pre_valid, lk_ahd->post_valid);
|
||||||
@@ -1755,7 +1747,6 @@ static int htc_parse_trailer(struct htc_target *target,
|
|||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int htc_proc_trailer(struct htc_target *target,
|
static int htc_proc_trailer(struct htc_target *target,
|
||||||
@@ -1776,7 +1767,6 @@ static int htc_proc_trailer(struct htc_target *target,
|
|||||||
status = 0;
|
status = 0;
|
||||||
|
|
||||||
while (len > 0) {
|
while (len > 0) {
|
||||||
|
|
||||||
if (len < sizeof(struct htc_record_hdr)) {
|
if (len < sizeof(struct htc_record_hdr)) {
|
||||||
status = -ENOMEM;
|
status = -ENOMEM;
|
||||||
break;
|
break;
|
||||||
@@ -2098,7 +2088,6 @@ static int ath6kl_htc_rx_fetch(struct htc_target *target,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!fetched_pkts) {
|
if (!fetched_pkts) {
|
||||||
|
|
||||||
packet = list_first_entry(rx_pktq, struct htc_packet,
|
packet = list_first_entry(rx_pktq, struct htc_packet,
|
||||||
list);
|
list);
|
||||||
|
|
||||||
@@ -2173,7 +2162,6 @@ int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target,
|
|||||||
look_aheads[0] = msg_look_ahead;
|
look_aheads[0] = msg_look_ahead;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* First lookahead sets the expected endpoint IDs for all
|
* First lookahead sets the expected endpoint IDs for all
|
||||||
* packets in a bundle.
|
* packets in a bundle.
|
||||||
|
|||||||
@@ -137,7 +137,6 @@ static void get_htc_packet_credit_based(struct htc_target *target,
|
|||||||
credits_required = 0;
|
credits_required = 0;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (ep->cred_dist.credits < credits_required)
|
if (ep->cred_dist.credits < credits_required)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -169,7 +168,6 @@ static void get_htc_packet_credit_based(struct htc_target *target,
|
|||||||
/* queue this packet into the caller's queue */
|
/* queue this packet into the caller's queue */
|
||||||
list_add_tail(&packet->list, queue);
|
list_add_tail(&packet->list, queue);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void get_htc_packet(struct htc_target *target,
|
static void get_htc_packet(struct htc_target *target,
|
||||||
@@ -279,7 +277,6 @@ static int htc_issue_packets(struct htc_target *target,
|
|||||||
list_add(&packet->list, pkt_queue);
|
list_add(&packet->list, pkt_queue);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status != 0) {
|
if (status != 0) {
|
||||||
@@ -385,7 +382,6 @@ static enum htc_send_queue_result htc_try_send(struct htc_target *target,
|
|||||||
*/
|
*/
|
||||||
list_for_each_entry_safe(packet, tmp_pkt,
|
list_for_each_entry_safe(packet, tmp_pkt,
|
||||||
txq, list) {
|
txq, list) {
|
||||||
|
|
||||||
ath6kl_dbg(ATH6KL_DBG_HTC,
|
ath6kl_dbg(ATH6KL_DBG_HTC,
|
||||||
"%s: Indicat overflowed TX pkts: %p\n",
|
"%s: Indicat overflowed TX pkts: %p\n",
|
||||||
__func__, packet);
|
__func__, packet);
|
||||||
@@ -403,7 +399,6 @@ static enum htc_send_queue_result htc_try_send(struct htc_target *target,
|
|||||||
list_move_tail(&packet->list,
|
list_move_tail(&packet->list,
|
||||||
&send_queue);
|
&send_queue);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (list_empty(&send_queue)) {
|
if (list_empty(&send_queue)) {
|
||||||
@@ -454,7 +449,6 @@ static enum htc_send_queue_result htc_try_send(struct htc_target *target,
|
|||||||
* enough transmit resources.
|
* enough transmit resources.
|
||||||
*/
|
*/
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
||||||
if (get_queue_depth(&ep->txq) == 0)
|
if (get_queue_depth(&ep->txq) == 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -495,8 +489,8 @@ static enum htc_send_queue_result htc_try_send(struct htc_target *target,
|
|||||||
}
|
}
|
||||||
|
|
||||||
spin_lock_bh(&target->tx_lock);
|
spin_lock_bh(&target->tx_lock);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* done with this endpoint, we can clear the count */
|
/* done with this endpoint, we can clear the count */
|
||||||
ep->tx_proc_cnt = 0;
|
ep->tx_proc_cnt = 0;
|
||||||
spin_unlock_bh(&target->tx_lock);
|
spin_unlock_bh(&target->tx_lock);
|
||||||
@@ -1106,7 +1100,6 @@ free_skb:
|
|||||||
dev_kfree_skb(skb);
|
dev_kfree_skb(skb);
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void htc_flush_rx_queue(struct htc_target *target,
|
static void htc_flush_rx_queue(struct htc_target *target,
|
||||||
@@ -1258,7 +1251,6 @@ static int ath6kl_htc_pipe_conn_service(struct htc_target *target,
|
|||||||
tx_alloc = 0;
|
tx_alloc = 0;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
tx_alloc = htc_get_credit_alloc(target, conn_req->svc_id);
|
tx_alloc = htc_get_credit_alloc(target, conn_req->svc_id);
|
||||||
if (tx_alloc == 0) {
|
if (tx_alloc == 0) {
|
||||||
status = -ENOMEM;
|
status = -ENOMEM;
|
||||||
|
|||||||
@@ -1192,7 +1192,6 @@ static int ath6kl_upload_board_file(struct ath6kl *ar)
|
|||||||
|
|
||||||
if (board_ext_address &&
|
if (board_ext_address &&
|
||||||
ar->fw_board_len == (board_data_size + board_ext_data_size)) {
|
ar->fw_board_len == (board_data_size + board_ext_data_size)) {
|
||||||
|
|
||||||
/* write extended board data */
|
/* write extended board data */
|
||||||
ath6kl_dbg(ATH6KL_DBG_BOOT,
|
ath6kl_dbg(ATH6KL_DBG_BOOT,
|
||||||
"writing extended board data to 0x%x (%d B)\n",
|
"writing extended board data to 0x%x (%d B)\n",
|
||||||
|
|||||||
@@ -571,7 +571,6 @@ void ath6kl_scan_complete_evt(struct ath6kl_vif *vif, int status)
|
|||||||
|
|
||||||
static int ath6kl_commit_ch_switch(struct ath6kl_vif *vif, u16 channel)
|
static int ath6kl_commit_ch_switch(struct ath6kl_vif *vif, u16 channel)
|
||||||
{
|
{
|
||||||
|
|
||||||
struct ath6kl *ar = vif->ar;
|
struct ath6kl *ar = vif->ar;
|
||||||
|
|
||||||
vif->profile.ch = cpu_to_le16(channel);
|
vif->profile.ch = cpu_to_le16(channel);
|
||||||
@@ -600,7 +599,6 @@ static int ath6kl_commit_ch_switch(struct ath6kl_vif *vif, u16 channel)
|
|||||||
|
|
||||||
static void ath6kl_check_ch_switch(struct ath6kl *ar, u16 channel)
|
static void ath6kl_check_ch_switch(struct ath6kl *ar, u16 channel)
|
||||||
{
|
{
|
||||||
|
|
||||||
struct ath6kl_vif *vif;
|
struct ath6kl_vif *vif;
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
||||||
@@ -694,7 +692,6 @@ void ath6kl_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid, bool ismcast)
|
|||||||
tsc, GFP_KERNEL);
|
tsc, GFP_KERNEL);
|
||||||
} else
|
} else
|
||||||
ath6kl_cfg80211_tkip_micerr_event(vif, keyid, ismcast);
|
ath6kl_cfg80211_tkip_micerr_event(vif, keyid, ismcast);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ath6kl_update_target_stats(struct ath6kl_vif *vif, u8 *ptr, u32 len)
|
static void ath6kl_update_target_stats(struct ath6kl_vif *vif, u8 *ptr, u32 len)
|
||||||
@@ -1146,7 +1143,6 @@ static int ath6kl_set_features(struct net_device *dev,
|
|||||||
dev->features = features | NETIF_F_RXCSUM;
|
dev->features = features | NETIF_F_RXCSUM;
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
|
|||||||
@@ -656,7 +656,6 @@ static void ath6kl_sdio_scatter_req_add(struct ath6kl *ar,
|
|||||||
list_add_tail(&s_req->list, &ar_sdio->scat_req);
|
list_add_tail(&s_req->list, &ar_sdio->scat_req);
|
||||||
|
|
||||||
spin_unlock_bh(&ar_sdio->scat_lock);
|
spin_unlock_bh(&ar_sdio->scat_lock);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* scatter gather read write request */
|
/* scatter gather read write request */
|
||||||
@@ -856,7 +855,6 @@ static int ath6kl_sdio_suspend(struct ath6kl *ar, struct cfg80211_wowlan *wow)
|
|||||||
|
|
||||||
if (ar->suspend_mode == WLAN_POWER_STATE_WOW ||
|
if (ar->suspend_mode == WLAN_POWER_STATE_WOW ||
|
||||||
(!ar->suspend_mode && wow)) {
|
(!ar->suspend_mode && wow)) {
|
||||||
|
|
||||||
ret = ath6kl_set_sdio_pm_caps(ar);
|
ret = ath6kl_set_sdio_pm_caps(ar);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto cut_pwr;
|
goto cut_pwr;
|
||||||
@@ -878,7 +876,6 @@ static int ath6kl_sdio_suspend(struct ath6kl *ar, struct cfg80211_wowlan *wow)
|
|||||||
|
|
||||||
if (ar->suspend_mode == WLAN_POWER_STATE_DEEP_SLEEP ||
|
if (ar->suspend_mode == WLAN_POWER_STATE_DEEP_SLEEP ||
|
||||||
!ar->suspend_mode || try_deepsleep) {
|
!ar->suspend_mode || try_deepsleep) {
|
||||||
|
|
||||||
flags = sdio_get_host_pm_caps(func);
|
flags = sdio_get_host_pm_caps(func);
|
||||||
if (!(flags & MMC_PM_KEEP_POWER))
|
if (!(flags & MMC_PM_KEEP_POWER))
|
||||||
goto cut_pwr;
|
goto cut_pwr;
|
||||||
@@ -1061,7 +1058,6 @@ static int ath6kl_sdio_bmi_credits(struct ath6kl *ar)
|
|||||||
|
|
||||||
timeout = jiffies + msecs_to_jiffies(BMI_COMMUNICATION_TIMEOUT);
|
timeout = jiffies + msecs_to_jiffies(BMI_COMMUNICATION_TIMEOUT);
|
||||||
while (time_before(jiffies, timeout) && !ar->bmi.cmd_credits) {
|
while (time_before(jiffies, timeout) && !ar->bmi.cmd_credits) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Hit the credit counter with a 4-byte access, the first byte
|
* Hit the credit counter with a 4-byte access, the first byte
|
||||||
* read will hit the counter and cause a decrement, while the
|
* read will hit the counter and cause a decrement, while the
|
||||||
|
|||||||
@@ -702,7 +702,6 @@ void ath6kl_tx_complete(struct htc_target *target,
|
|||||||
|
|
||||||
/* reap completed packets */
|
/* reap completed packets */
|
||||||
while (!list_empty(packet_queue)) {
|
while (!list_empty(packet_queue)) {
|
||||||
|
|
||||||
packet = list_first_entry(packet_queue, struct htc_packet,
|
packet = list_first_entry(packet_queue, struct htc_packet,
|
||||||
list);
|
list);
|
||||||
list_del(&packet->list);
|
list_del(&packet->list);
|
||||||
@@ -1265,7 +1264,6 @@ static void ath6kl_uapsd_trigger_frame_rx(struct ath6kl_vif *vif,
|
|||||||
is_apsdq_empty_at_start = is_apsdq_empty;
|
is_apsdq_empty_at_start = is_apsdq_empty;
|
||||||
|
|
||||||
while ((!is_apsdq_empty) && (num_frames_to_deliver)) {
|
while ((!is_apsdq_empty) && (num_frames_to_deliver)) {
|
||||||
|
|
||||||
spin_lock_bh(&conn->psq_lock);
|
spin_lock_bh(&conn->psq_lock);
|
||||||
skb = skb_dequeue(&conn->apsdq);
|
skb = skb_dequeue(&conn->apsdq);
|
||||||
is_apsdq_empty = skb_queue_empty(&conn->apsdq);
|
is_apsdq_empty = skb_queue_empty(&conn->apsdq);
|
||||||
@@ -1766,7 +1764,6 @@ void aggr_conn_init(struct ath6kl_vif *vif, struct aggr_info *aggr_info,
|
|||||||
skb_queue_head_init(&rxtid->q);
|
skb_queue_head_init(&rxtid->q);
|
||||||
spin_lock_init(&rxtid->lock);
|
spin_lock_init(&rxtid->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct aggr_info *aggr_init(struct ath6kl_vif *vif)
|
struct aggr_info *aggr_init(struct ath6kl_vif *vif)
|
||||||
|
|||||||
@@ -236,7 +236,6 @@ static void ath6kl_usb_free_pipe_resources(struct ath6kl_usb_pipe *pipe)
|
|||||||
break;
|
break;
|
||||||
kfree(urb_context);
|
kfree(urb_context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ath6kl_usb_cleanup_pipe_resources(struct ath6kl_usb *ar_usb)
|
static void ath6kl_usb_cleanup_pipe_resources(struct ath6kl_usb *ar_usb)
|
||||||
@@ -245,7 +244,6 @@ static void ath6kl_usb_cleanup_pipe_resources(struct ath6kl_usb *ar_usb)
|
|||||||
|
|
||||||
for (i = 0; i < ATH6KL_USB_PIPE_MAX; i++)
|
for (i = 0; i < ATH6KL_USB_PIPE_MAX; i++)
|
||||||
ath6kl_usb_free_pipe_resources(&ar_usb->pipes[i]);
|
ath6kl_usb_free_pipe_resources(&ar_usb->pipes[i]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static u8 ath6kl_usb_get_logical_pipe_num(struct ath6kl_usb *ar_usb,
|
static u8 ath6kl_usb_get_logical_pipe_num(struct ath6kl_usb *ar_usb,
|
||||||
|
|||||||
@@ -936,7 +936,6 @@ ath6kl_regd_find_country_by_rd(u16 regdmn)
|
|||||||
|
|
||||||
static void ath6kl_wmi_regdomain_event(struct wmi *wmi, u8 *datap, int len)
|
static void ath6kl_wmi_regdomain_event(struct wmi *wmi, u8 *datap, int len)
|
||||||
{
|
{
|
||||||
|
|
||||||
struct ath6kl_wmi_regdomain *ev;
|
struct ath6kl_wmi_regdomain *ev;
|
||||||
struct country_code_to_enum_rd *country = NULL;
|
struct country_code_to_enum_rd *country = NULL;
|
||||||
struct reg_dmn_pair_mapping *regpair = NULL;
|
struct reg_dmn_pair_mapping *regpair = NULL;
|
||||||
@@ -949,7 +948,6 @@ static void ath6kl_wmi_regdomain_event(struct wmi *wmi, u8 *datap, int len)
|
|||||||
if ((reg_code >> ATH6KL_COUNTRY_RD_SHIFT) & COUNTRY_ERD_FLAG)
|
if ((reg_code >> ATH6KL_COUNTRY_RD_SHIFT) & COUNTRY_ERD_FLAG)
|
||||||
country = ath6kl_regd_find_country((u16) reg_code);
|
country = ath6kl_regd_find_country((u16) reg_code);
|
||||||
else if (!(((u16) reg_code & WORLD_SKU_MASK) == WORLD_SKU_PREFIX)) {
|
else if (!(((u16) reg_code & WORLD_SKU_MASK) == WORLD_SKU_PREFIX)) {
|
||||||
|
|
||||||
regpair = ath6kl_get_regpair((u16) reg_code);
|
regpair = ath6kl_get_regpair((u16) reg_code);
|
||||||
country = ath6kl_regd_find_country_by_rd((u16) reg_code);
|
country = ath6kl_regd_find_country_by_rd((u16) reg_code);
|
||||||
if (regpair)
|
if (regpair)
|
||||||
@@ -1499,7 +1497,6 @@ static int ath6kl_wmi_cac_event_rx(struct wmi *wmi, u8 *datap, int len,
|
|||||||
|
|
||||||
if ((reply->cac_indication == CAC_INDICATION_ADMISSION_RESP) &&
|
if ((reply->cac_indication == CAC_INDICATION_ADMISSION_RESP) &&
|
||||||
(reply->status_code != IEEE80211_TSPEC_STATUS_ADMISS_ACCEPTED)) {
|
(reply->status_code != IEEE80211_TSPEC_STATUS_ADMISS_ACCEPTED)) {
|
||||||
|
|
||||||
ts = (struct ieee80211_tspec_ie *) &(reply->tspec_suggestion);
|
ts = (struct ieee80211_tspec_ie *) &(reply->tspec_suggestion);
|
||||||
tsinfo = le16_to_cpu(ts->tsinfo);
|
tsinfo = le16_to_cpu(ts->tsinfo);
|
||||||
tsid = (tsinfo >> IEEE80211_WMM_IE_TSPEC_TID_SHIFT) &
|
tsid = (tsinfo >> IEEE80211_WMM_IE_TSPEC_TID_SHIFT) &
|
||||||
@@ -1530,7 +1527,6 @@ static int ath6kl_wmi_cac_event_rx(struct wmi *wmi, u8 *datap, int len,
|
|||||||
* for delete qos stream from AP
|
* for delete qos stream from AP
|
||||||
*/
|
*/
|
||||||
else if (reply->cac_indication == CAC_INDICATION_DELETE) {
|
else if (reply->cac_indication == CAC_INDICATION_DELETE) {
|
||||||
|
|
||||||
ts = (struct ieee80211_tspec_ie *) &(reply->tspec_suggestion);
|
ts = (struct ieee80211_tspec_ie *) &(reply->tspec_suggestion);
|
||||||
tsinfo = le16_to_cpu(ts->tsinfo);
|
tsinfo = le16_to_cpu(ts->tsinfo);
|
||||||
ts_id = ((tsinfo >> IEEE80211_WMM_IE_TSPEC_TID_SHIFT) &
|
ts_id = ((tsinfo >> IEEE80211_WMM_IE_TSPEC_TID_SHIFT) &
|
||||||
@@ -2479,7 +2475,6 @@ static int ath6kl_wmi_sync_point(struct wmi *wmi, u8 if_idx)
|
|||||||
goto free_data_skb;
|
goto free_data_skb;
|
||||||
|
|
||||||
for (index = 0; index < num_pri_streams; index++) {
|
for (index = 0; index < num_pri_streams; index++) {
|
||||||
|
|
||||||
if (WARN_ON(!data_sync_bufs[index].skb))
|
if (WARN_ON(!data_sync_bufs[index].skb))
|
||||||
goto free_data_skb;
|
goto free_data_skb;
|
||||||
|
|
||||||
@@ -2704,7 +2699,6 @@ static void ath6kl_wmi_relinquish_implicit_pstream_credits(struct wmi *wmi)
|
|||||||
|
|
||||||
for (i = 0; i < WMM_NUM_AC; i++) {
|
for (i = 0; i < WMM_NUM_AC; i++) {
|
||||||
if (stream_exist & (1 << i)) {
|
if (stream_exist & (1 << i)) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FIXME: Is this lock & unlock inside
|
* FIXME: Is this lock & unlock inside
|
||||||
* for loop correct? may need rework.
|
* for loop correct? may need rework.
|
||||||
|
|||||||
@@ -898,7 +898,6 @@ struct wmi_start_scan_cmd {
|
|||||||
* flags here
|
* flags here
|
||||||
*/
|
*/
|
||||||
enum wmi_scan_ctrl_flags_bits {
|
enum wmi_scan_ctrl_flags_bits {
|
||||||
|
|
||||||
/* set if can scan in the connect cmd */
|
/* set if can scan in the connect cmd */
|
||||||
CONNECT_SCAN_CTRL_FLAGS = 0x01,
|
CONNECT_SCAN_CTRL_FLAGS = 0x01,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user