mac80211: remove unnecessary assignment
authorZhao, Gang <gamerh2o@gmail.com>
Sat, 26 Apr 2014 01:43:41 +0000 (09:43 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 28 Apr 2014 15:53:19 +0000 (17:53 +0200)
P2P_DEVICE doesn't support ieee80211_bss_info_change_notify() for now,
so it's not needed to set changed flags for P2P_DEVICE.

Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c

index cafbae701d3d5c3fdc417c72e0051976449985e9..ad058759e85e1124073029c7ccd7e516707513d0 100644 (file)
@@ -1671,13 +1671,10 @@ int ieee80211_reconfig(struct ieee80211_local *local)
                        }
                        break;
                case NL80211_IFTYPE_WDS:
-                       break;
                case NL80211_IFTYPE_AP_VLAN:
                case NL80211_IFTYPE_MONITOR:
-                       /* ignore virtual */
-                       break;
                case NL80211_IFTYPE_P2P_DEVICE:
-                       changed = BSS_CHANGED_IDLE;
+                       /* nothing to do */
                        break;
                case NL80211_IFTYPE_UNSPECIFIED:
                case NUM_NL80211_IFTYPES: