Skip to content

Commit b4949b8

Browse files
committed
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
2 parents cd7816d + 96f1f05 commit b4949b8

4 files changed

Lines changed: 14 additions & 5 deletions

File tree

‎drivers/net/wireless/iwlwifi/iwl-trans-pcie.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,9 +1197,7 @@ static int iwl_trans_pcie_tx(struct iwl_trans *trans, struct sk_buff *skb,
11971197
iwl_print_hex_dump(trans, IWL_DL_TX, (u8 *)tx_cmd->hdr, hdr_len);
11981198

11991199
/* Set up entry for this TFD in Tx byte-count array */
1200-
if (is_agg)
1201-
iwl_trans_txq_update_byte_cnt_tbl(trans, txq,
1202-
le16_to_cpu(tx_cmd->len));
1200+
iwl_trans_txq_update_byte_cnt_tbl(trans, txq, le16_to_cpu(tx_cmd->len));
12031201

12041202
dma_sync_single_for_device(bus(trans)->dev, txcmd_phys, firstlen,
12051203
DMA_BIDIRECTIONAL);

‎net/bluetooth/hci_conn.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type)
673673
goto encrypt;
674674

675675
auth:
676-
if (test_and_set_bit(HCI_CONN_ENCRYPT_PEND, &conn->pend))
676+
if (test_bit(HCI_CONN_ENCRYPT_PEND, &conn->pend))
677677
return 0;
678678

679679
if (!hci_conn_auth(conn, sec_level, auth_type))

‎net/bluetooth/l2cap_core.c‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2152,7 +2152,7 @@ static int l2cap_parse_conf_rsp(struct l2cap_chan *chan, void *rsp, int len, voi
21522152
void *ptr = req->data;
21532153
int type, olen;
21542154
unsigned long val;
2155-
struct l2cap_conf_rfc rfc;
2155+
struct l2cap_conf_rfc rfc = { .mode = L2CAP_MODE_BASIC };
21562156

21572157
BT_DBG("chan %p, rsp %p, len %d, req %p", chan, rsp, len, data);
21582158

@@ -2271,6 +2271,16 @@ static void l2cap_conf_rfc_get(struct l2cap_chan *chan, void *rsp, int len)
22712271
}
22722272
}
22732273

2274+
/* Use sane default values in case a misbehaving remote device
2275+
* did not send an RFC option.
2276+
*/
2277+
rfc.mode = chan->mode;
2278+
rfc.retrans_timeout = cpu_to_le16(L2CAP_DEFAULT_RETRANS_TO);
2279+
rfc.monitor_timeout = cpu_to_le16(L2CAP_DEFAULT_MONITOR_TO);
2280+
rfc.max_pdu_size = cpu_to_le16(chan->imtu);
2281+
2282+
BT_ERR("Expected RFC option was not found, using defaults");
2283+
22742284
done:
22752285
switch (rfc.mode) {
22762286
case L2CAP_MODE_ERTM:

‎net/bluetooth/rfcomm/core.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,6 +1146,7 @@ static int rfcomm_recv_ua(struct rfcomm_session *s, u8 dlci)
11461146
if (list_empty(&s->dlcs)) {
11471147
s->state = BT_DISCONN;
11481148
rfcomm_send_disc(s, 0);
1149+
rfcomm_session_clear_timer(s);
11491150
}
11501151

11511152
break;

0 commit comments

Comments
 (0)