|
@@ -1578,10 +1578,15 @@ static ssize_t ath6kl_bgscan_int_write(struct file *file,
|
|
|
size_t count, loff_t *ppos)
|
|
|
{
|
|
|
struct ath6kl *ar = file->private_data;
|
|
|
+ struct ath6kl_vif *vif;
|
|
|
u16 bgscan_int;
|
|
|
char buf[32];
|
|
|
ssize_t len;
|
|
|
|
|
|
+ vif = ath6kl_vif_first(ar);
|
|
|
+ if (!vif)
|
|
|
+ return -EIO;
|
|
|
+
|
|
|
len = min(count, sizeof(buf) - 1);
|
|
|
if (copy_from_user(buf, user_buf, len))
|
|
|
return -EFAULT;
|
|
@@ -1593,6 +1598,8 @@ static ssize_t ath6kl_bgscan_int_write(struct file *file,
|
|
|
if (bgscan_int == 0)
|
|
|
bgscan_int = 0xffff;
|
|
|
|
|
|
+ vif->bg_scan_period = bgscan_int;
|
|
|
+
|
|
|
ath6kl_wmi_scanparams_cmd(ar->wmi, 0, 0, 0, bgscan_int, 0, 0, 0, 3,
|
|
|
0, 0, 0);
|
|
|
|