|
@@ -69,7 +69,7 @@ static ssize_t write_file_debug(struct file *file, const char __user *user_buf,
|
|
|
return -EFAULT;
|
|
|
|
|
|
buf[len] = '\0';
|
|
|
- if (strict_strtoul(buf, 0, &mask))
|
|
|
+ if (kstrtoul(buf, 0, &mask))
|
|
|
return -EINVAL;
|
|
|
|
|
|
common->debug_mask = mask;
|
|
@@ -114,7 +114,7 @@ static ssize_t write_file_tx_chainmask(struct file *file, const char __user *use
|
|
|
return -EFAULT;
|
|
|
|
|
|
buf[len] = '\0';
|
|
|
- if (strict_strtoul(buf, 0, &mask))
|
|
|
+ if (kstrtoul(buf, 0, &mask))
|
|
|
return -EINVAL;
|
|
|
|
|
|
ah->txchainmask = mask;
|
|
@@ -157,7 +157,7 @@ static ssize_t write_file_rx_chainmask(struct file *file, const char __user *use
|
|
|
return -EFAULT;
|
|
|
|
|
|
buf[len] = '\0';
|
|
|
- if (strict_strtoul(buf, 0, &mask))
|
|
|
+ if (kstrtoul(buf, 0, &mask))
|
|
|
return -EINVAL;
|
|
|
|
|
|
ah->rxchainmask = mask;
|
|
@@ -200,7 +200,7 @@ static ssize_t write_file_disable_ani(struct file *file,
|
|
|
return -EFAULT;
|
|
|
|
|
|
buf[len] = '\0';
|
|
|
- if (strict_strtoul(buf, 0, &disable_ani))
|
|
|
+ if (kstrtoul(buf, 0, &disable_ani))
|
|
|
return -EINVAL;
|
|
|
|
|
|
common->disable_ani = !!disable_ani;
|
|
@@ -253,7 +253,7 @@ static ssize_t write_file_ant_diversity(struct file *file,
|
|
|
goto exit;
|
|
|
|
|
|
buf[len] = '\0';
|
|
|
- if (strict_strtoul(buf, 0, &antenna_diversity))
|
|
|
+ if (kstrtoul(buf, 0, &antenna_diversity))
|
|
|
return -EINVAL;
|
|
|
|
|
|
common->antenna_diversity = !!antenna_diversity;
|
|
@@ -1278,7 +1278,7 @@ static ssize_t write_file_regidx(struct file *file, const char __user *user_buf,
|
|
|
return -EFAULT;
|
|
|
|
|
|
buf[len] = '\0';
|
|
|
- if (strict_strtoul(buf, 0, ®idx))
|
|
|
+ if (kstrtoul(buf, 0, ®idx))
|
|
|
return -EINVAL;
|
|
|
|
|
|
sc->debug.regidx = regidx;
|
|
@@ -1323,7 +1323,7 @@ static ssize_t write_file_regval(struct file *file, const char __user *user_buf,
|
|
|
return -EFAULT;
|
|
|
|
|
|
buf[len] = '\0';
|
|
|
- if (strict_strtoul(buf, 0, ®val))
|
|
|
+ if (kstrtoul(buf, 0, ®val))
|
|
|
return -EINVAL;
|
|
|
|
|
|
ath9k_ps_wakeup(sc);
|