projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mac80211: add option for setting skb flags before xmit
[cascardo/linux.git]
/
net
/
mac80211
/
debugfs_netdev.c
diff --git
a/net/mac80211/debugfs_netdev.c
b/net/mac80211/debugfs_netdev.c
index
e205eba
..
c68896a
100644
(file)
--- a/
net/mac80211/debugfs_netdev.c
+++ b/
net/mac80211/debugfs_netdev.c
@@
-226,12
+226,12
@@
static int ieee80211_set_smps(struct ieee80211_sub_if_data *sdata,
struct ieee80211_local *local = sdata->local;
int err;
struct ieee80211_local *local = sdata->local;
int err;
- if (!(local->hw.
flags & IEEE80211_HW_SUPPORTS
_STATIC_SMPS) &&
+ if (!(local->hw.
wiphy->features & NL80211_FEATURE
_STATIC_SMPS) &&
smps_mode == IEEE80211_SMPS_STATIC)
return -EINVAL;
/* auto should be dynamic if in PS mode */
smps_mode == IEEE80211_SMPS_STATIC)
return -EINVAL;
/* auto should be dynamic if in PS mode */
- if (!(local->hw.
flags & IEEE80211_HW_SUPPORTS
_DYNAMIC_SMPS) &&
+ if (!(local->hw.
wiphy->features & NL80211_FEATURE
_DYNAMIC_SMPS) &&
(smps_mode == IEEE80211_SMPS_DYNAMIC ||
smps_mode == IEEE80211_SMPS_AUTOMATIC))
return -EINVAL;
(smps_mode == IEEE80211_SMPS_DYNAMIC ||
smps_mode == IEEE80211_SMPS_AUTOMATIC))
return -EINVAL;