Commit 9917c85b authored by Alan Cox's avatar Alan Cox Committed by John W. Linville
Browse files

brcm80211: remove some truely barftastic code

It's not used or called but please make it go away before someone copies or
uses it
Signed-off-by: default avatarAlan "minus lunch" Cox <>
Acked-by: default avatarFranky Lin <>
Signed-off-by: default avatarJohn W. Linville <>
parent c5b057b5
......@@ -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 *,
......@@ -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();
/* 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);
/* free buf before return */
/* close file before return */
if (fp)
filp_close(fp, NULL);
/* restore previous address limit */
return ret;
#endif /* DEBUG */
static void brcmf_driver_init(struct work_struct *work)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment