Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363329
b: refs/heads/master
c: d385291
h: refs/heads/master
i:
  363327: 1b8cc56
v: v3
  • Loading branch information
Peter Huewe authored and Greg Kroah-Hartman committed Mar 11, 2013
1 parent ff349a2 commit 6b5ef4e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb986df15c86b66a51f6e82f4706bc825444670b
refs/heads/master: d38529100d0f2e844df5f06d67dae8dd32086ec1
42 changes: 17 additions & 25 deletions trunk/drivers/staging/gdm72xx/gdm_qos.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,20 +365,24 @@ void gdm_recv_qos_hci_packet(void *nic_ptr, u8 *buf, int size)
spin_unlock_irqrestore(&qcb->qos_lock, flags);
send_qos_list(nic, &send_list);
return;
} else if (subCmdEvt == QOS_ADD) {
pos = 6;

SFID = ((buf[pos++]<<24)&0xff000000);
SFID += ((buf[pos++]<<16)&0xff0000);
SFID += ((buf[pos++]<<8)&0xff00);
SFID += (buf[pos++]);

index = get_csr(qcb, SFID, 1);
if (index == -1) {
netdev_err(nic->netdev, "QoS ERROR: csr Update Error\n");
return;
}
}

/* subCmdEvt == QOS_ADD || subCmdEvt == QOS_CHANG_DEL */
pos = 6;
SFID = ((buf[pos++]<<24)&0xff000000);
SFID += ((buf[pos++]<<16)&0xff0000);
SFID += ((buf[pos++]<<8)&0xff00);
SFID += (buf[pos++]);

index = get_csr(qcb, SFID, 1);
if (index == -1) {
netdev_err(nic->netdev,
"QoS ERROR: csr Update Error / Wrong index (%d) \n",
index);
return;
}

if (subCmdEvt == QOS_ADD) {
netdev_dbg(nic->netdev, "QOS_ADD SFID = 0x%x, index=%d\n",
SFID, index);

Expand Down Expand Up @@ -420,18 +424,6 @@ void gdm_recv_qos_hci_packet(void *nic_ptr, u8 *buf, int size)
qcb->qos_limit_size = 254/qcb->qos_list_cnt;
spin_unlock_irqrestore(&qcb->qos_lock, flags);
} else if (subCmdEvt == QOS_CHANGE_DEL) {
pos = 6;
SFID = ((buf[pos++]<<24)&0xff000000);
SFID += ((buf[pos++]<<16)&0xff0000);
SFID += ((buf[pos++]<<8)&0xff00);
SFID += (buf[pos++]);
index = get_csr(qcb, SFID, 1);
if (index == -1) {
netdev_err(nic->netdev, "QoS ERROR: Wrong index(%d)\n",
index);
return;
}

netdev_dbg(nic->netdev, "QOS_CHANGE_DEL SFID = 0x%x, index=%d\n",
SFID, index);

Expand Down

0 comments on commit 6b5ef4e

Please sign in to comment.