Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247516
b: refs/heads/master
c: 2dc5a5c
h: refs/heads/master
v: v3
  • Loading branch information
Arik Nemtsov authored and Luciano Coelho committed May 2, 2011
1 parent 9077260 commit 3fa8349
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c45a85b5a3c0ca841a7ffc700bdece8ee01486be
refs/heads/master: 2dc5a5c2c656b9029a0e635bb3a1cbcfbcb4ca5c
20 changes: 20 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,25 @@ static const struct file_operations gpio_power_ops = {
.llseek = default_llseek,
};

static ssize_t start_recovery_write(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{
struct wl1271 *wl = file->private_data;

mutex_lock(&wl->mutex);
ieee80211_queue_work(wl->hw, &wl->recovery_work);
mutex_unlock(&wl->mutex);

return count;
}

static const struct file_operations start_recovery_ops = {
.write = start_recovery_write,
.open = wl1271_open_file_generic,
.llseek = default_llseek,
};

static ssize_t dtim_interval_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{
Expand Down Expand Up @@ -529,6 +548,7 @@ static int wl1271_debugfs_add_files(struct wl1271 *wl,
DEBUGFS_ADD(excessive_retries, rootdir);

DEBUGFS_ADD(gpio_power, rootdir);
DEBUGFS_ADD(start_recovery, rootdir);
DEBUGFS_ADD(dtim_interval, rootdir);
DEBUGFS_ADD(beacon_interval, rootdir);

Expand Down

0 comments on commit 3fa8349

Please sign in to comment.