Skip to content

Commit

Permalink
mac80211: remove unnecessary assignment
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
zhao-gang authored and jmberg-intel committed Apr 28, 2014
1 parent 7df180f commit b205786
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions net/mac80211/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b205786

Please sign in to comment.