Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279306
b: refs/heads/master
c: 1ae0042
h: refs/heads/master
v: v3
  • Loading branch information
Franky Lin authored and John W. Linville committed Dec 19, 2011
1 parent 8f8208d commit 980eea7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 30 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: d08b6a3759818eed78057a8bafebc630dbe9a9ba
refs/heads/master: 1ae00421e72da52d35e994244abf768ffc7dffc6
3 changes: 0 additions & 3 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/dhd.h
Original file line number Diff line number Diff line change
Expand Up @@ -734,9 +734,6 @@ extern void brcmf_txcomplete(struct brcmf_pub *drvr, struct sk_buff *txp,
extern int brcmf_proto_cdc_query_dcmd(struct brcmf_pub *drvr, int ifidx,
uint cmd, void *buf, uint len);

/* OS independent layer functions */
extern int brcmf_os_proto_block(struct brcmf_pub *drvr);
extern int brcmf_os_proto_unblock(struct brcmf_pub *drvr);
#ifdef BCMDBG
extern int brcmf_write_to_file(struct brcmf_pub *drvr, const u8 *buf, int size);
#endif /* BCMDBG */
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/dhd_cdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ brcmf_proto_dcmd(struct brcmf_pub *drvr, int ifidx, struct brcmf_dcmd *dcmd,
brcmf_dbg(ERROR, "bus is down. we have nothing to do.\n");
return ret;
}
brcmf_os_proto_block(drvr);
mutex_lock(&drvr->proto_block);

brcmf_dbg(TRACE, "Enter\n");

Expand Down Expand Up @@ -338,7 +338,7 @@ brcmf_proto_dcmd(struct brcmf_pub *drvr, int ifidx, struct brcmf_dcmd *dcmd,
prot->pending = false;

done:
brcmf_os_proto_unblock(drvr);
mutex_unlock(&drvr->proto_block);

return ret;
}
Expand Down Expand Up @@ -470,19 +470,19 @@ int brcmf_proto_init(struct brcmf_pub *drvr)

brcmf_dbg(TRACE, "Enter\n");

brcmf_os_proto_block(drvr);
mutex_lock(&drvr->proto_block);

/* Get the device MAC address */
strcpy(buf, "cur_etheraddr");
ret = brcmf_proto_cdc_query_dcmd(drvr, 0, BRCMF_C_GET_VAR,
buf, sizeof(buf));
if (ret < 0) {
brcmf_os_proto_unblock(drvr);
mutex_unlock(&drvr->proto_block);
return ret;
}
memcpy(drvr->mac, buf, ETH_ALEN);

brcmf_os_proto_unblock(drvr);
mutex_unlock(&drvr->proto_block);

ret = brcmf_c_preinit_dcmds(drvr);

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/dhd_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ int brcmf_c_preinit_dcmds(struct brcmf_pub *drvr)
int scan_unassoc_time = 40;
int i;

brcmf_os_proto_block(drvr);
mutex_lock(&drvr->proto_block);

/* Set Country code */
if (drvr->country_code[0] != 0) {
Expand Down Expand Up @@ -873,7 +873,7 @@ int brcmf_c_preinit_dcmds(struct brcmf_pub *drvr)
0, true);
}

brcmf_os_proto_unblock(drvr);
mutex_unlock(&drvr->proto_block);

return 0;
}
19 changes: 0 additions & 19 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -1112,25 +1112,6 @@ void brcmf_detach(struct brcmf_pub *drvr)
}
}

int brcmf_os_proto_block(struct brcmf_pub *drvr)
{
if (drvr) {
mutex_lock(&drvr->proto_block);
return 1;
}
return 0;
}

int brcmf_os_proto_unblock(struct brcmf_pub *drvr)
{
if (drvr) {
mutex_unlock(&drvr->proto_block);
return 1;
}

return 0;
}

static int brcmf_get_pend_8021x_cnt(struct brcmf_pub *drvr)
{
return atomic_read(&drvr->pend_8021x_cnt);
Expand Down

0 comments on commit 980eea7

Please sign in to comment.