diff options
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r-- | net/mac80211/util.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 61876eb50b49..2cde9bbfe7d9 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
@@ -1063,24 +1063,13 @@ int ieee80211_reconfig(struct ieee80211_local *local) | |||
1063 | switch (sdata->vif.type) { | 1063 | switch (sdata->vif.type) { |
1064 | case NL80211_IFTYPE_STATION: | 1064 | case NL80211_IFTYPE_STATION: |
1065 | /* disable beacon change bits */ | 1065 | /* disable beacon change bits */ |
1066 | changed &= ~IEEE80211_IFCC_BEACON; | 1066 | changed &= ~(BSS_CHANGED_BEACON | |
1067 | BSS_CHANGED_BEACON_ENABLED); | ||
1067 | /* fall through */ | 1068 | /* fall through */ |
1068 | case NL80211_IFTYPE_ADHOC: | 1069 | case NL80211_IFTYPE_ADHOC: |
1069 | case NL80211_IFTYPE_AP: | 1070 | case NL80211_IFTYPE_AP: |
1070 | case NL80211_IFTYPE_MESH_POINT: | 1071 | case NL80211_IFTYPE_MESH_POINT: |
1071 | /* | 1072 | ieee80211_bss_info_change_notify(sdata, changed); |
1072 | * Driver's config_interface can fail if rfkill is | ||
1073 | * enabled. Accommodate this return code. | ||
1074 | * FIXME: When mac80211 has knowledge of rfkill | ||
1075 | * state the code below can change back to: | ||
1076 | * WARN(ieee80211_if_config(sdata, changed)); | ||
1077 | * ieee80211_bss_info_change_notify(sdata, ~0); | ||
1078 | */ | ||
1079 | if (ieee80211_if_config(sdata, changed)) | ||
1080 | printk(KERN_DEBUG "%s: failed to configure interface during resume\n", | ||
1081 | sdata->dev->name); | ||
1082 | else | ||
1083 | ieee80211_bss_info_change_notify(sdata, ~0); | ||
1084 | break; | 1073 | break; |
1085 | case NL80211_IFTYPE_WDS: | 1074 | case NL80211_IFTYPE_WDS: |
1086 | break; | 1075 | break; |