Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340918
b: refs/heads/master
c: 9917c85
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and John W. Linville committed Oct 19, 2012
1 parent 0613ffe commit 3460c63
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 41 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: c5b057b55fb9822544995f9268de871ebac81f12
refs/heads/master: 9917c85b06c2eb9d61c0f2dadd2d5d8788f7e563
4 changes: 0 additions & 4 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/dhd.h
Original file line number Diff line number Diff line change
Expand Up @@ -702,10 +702,6 @@ extern char *brcmf_ifname(struct brcmf_pub *drvr, int idx);
extern int brcmf_proto_cdc_query_dcmd(struct brcmf_pub *drvr, int ifidx,
uint cmd, void *buf, uint len);

#ifdef DEBUG
extern int brcmf_write_to_file(struct brcmf_pub *drvr, const u8 *buf, int size);
#endif /* DEBUG */

extern int brcmf_ifname2idx(struct brcmf_pub *drvr, char *name);
extern int brcmf_c_host_event(struct brcmf_pub *drvr, int *idx,
void *pktdata, struct brcmf_event_msg *,
Expand Down
36 changes: 0 additions & 36 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -1163,42 +1163,6 @@ int brcmf_netdev_wait_pend8021x(struct net_device *ndev)
return pend;
}

#ifdef DEBUG
int brcmf_write_to_file(struct brcmf_pub *drvr, const u8 *buf, int size)
{
int ret = 0;
struct file *fp;
mm_segment_t old_fs;
loff_t pos = 0;

/* change to KERNEL_DS address limit */
old_fs = get_fs();
set_fs(KERNEL_DS);

/* open file to write */
fp = filp_open("/tmp/mem_dump", O_WRONLY | O_CREAT, 0640);
if (!fp) {
brcmf_dbg(ERROR, "open file error\n");
ret = -1;
goto exit;
}

/* Write buf to file */
fp->f_op->write(fp, (char __user *)buf, size, &pos);

exit:
/* free buf before return */
kfree(buf);
/* close file before return */
if (fp)
filp_close(fp, NULL);
/* restore previous address limit */
set_fs(old_fs);

return ret;
}
#endif /* DEBUG */

static void brcmf_driver_init(struct work_struct *work)
{
brcmf_debugfs_init();
Expand Down

0 comments on commit 3460c63

Please sign in to comment.