Skip to content

Commit bba87ff

Browse files
ilanpeer2jmberg-intel
authored andcommitted
cfg80211: fix radar check for P2P_DEVICE
Radar is not required for P2P_DEVICE interfaces. Signed-off-by: Ilan Peer <ilan.peer@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent b7566fc commit bba87ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/wireless/util.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,10 +1217,10 @@ int cfg80211_can_use_iftype_chan(struct cfg80211_registered_device *rdev,
12171217
break;
12181218
case NL80211_IFTYPE_P2P_CLIENT:
12191219
case NL80211_IFTYPE_STATION:
1220+
case NL80211_IFTYPE_P2P_DEVICE:
12201221
case NL80211_IFTYPE_MONITOR:
12211222
radar_required = false;
12221223
break;
1223-
case NL80211_IFTYPE_P2P_DEVICE:
12241224
case NUM_NL80211_IFTYPES:
12251225
case NL80211_IFTYPE_UNSPECIFIED:
12261226
default:

0 commit comments

Comments
 (0)