Lines Matching refs:WARN_ON

187 			WARN_ON(err);  in cfg80211_switch_netns()
207 WARN_ON(err); in cfg80211_switch_netns()
234 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_P2P_DEVICE)) in cfg80211_stop_p2p_device()
246 if (WARN_ON(!rdev->scan_req->notified && in cfg80211_stop_p2p_device()
259 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_NAN)) in cfg80211_stop_nan()
456 WARN_ON(ops->add_key && (!ops->del_key || !ops->set_default_key)); in wiphy_new_nm()
457 WARN_ON(ops->auth && (!ops->assoc || !ops->deauth || !ops->disassoc)); in wiphy_new_nm()
458 WARN_ON(ops->connect && !ops->disconnect); in wiphy_new_nm()
459 WARN_ON(ops->join_ibss && !ops->leave_ibss); in wiphy_new_nm()
460 WARN_ON(ops->add_virtual_intf && !ops->del_virtual_intf); in wiphy_new_nm()
461 WARN_ON(ops->add_station && !ops->del_station); in wiphy_new_nm()
462 WARN_ON(ops->add_mpath && !ops->del_mpath); in wiphy_new_nm()
463 WARN_ON(ops->join_mesh && !ops->leave_mesh); in wiphy_new_nm()
464 WARN_ON(ops->start_p2p_device && !ops->stop_p2p_device); in wiphy_new_nm()
465 WARN_ON(ops->start_ap && !ops->stop_ap); in wiphy_new_nm()
466 WARN_ON(ops->join_ocb && !ops->leave_ocb); in wiphy_new_nm()
467 WARN_ON(ops->suspend && !ops->resume); in wiphy_new_nm()
468 WARN_ON(ops->sched_scan_start && !ops->sched_scan_stop); in wiphy_new_nm()
469 WARN_ON(ops->remain_on_channel && !ops->cancel_remain_on_channel); in wiphy_new_nm()
470 WARN_ON(ops->tdls_channel_switch && !ops->tdls_cancel_channel_switch); in wiphy_new_nm()
471 WARN_ON(ops->add_tx_ts && !ops->del_tx_ts); in wiphy_new_nm()
623 if (WARN_ON((c->max_interfaces < 2) && !c->radar_detect_widths)) in wiphy_verify_iface_combinations()
627 if (WARN_ON(!c->num_different_channels)) in wiphy_verify_iface_combinations()
635 WARN_ON(c->radar_detect_widths && in wiphy_verify_iface_combinations()
639 if (WARN_ON(!c->n_limits)) in wiphy_verify_iface_combinations()
646 if (WARN_ON(types & all_iftypes)) in wiphy_verify_iface_combinations()
650 if (WARN_ON(!c->limits[j].max)) in wiphy_verify_iface_combinations()
654 if (WARN_ON(wiphy->software_iftypes & types)) in wiphy_verify_iface_combinations()
662 WARN_ON(types & BIT(NL80211_IFTYPE_P2P_DEVICE) && in wiphy_verify_iface_combinations()
667 if (WARN_ON(types & BIT(NL80211_IFTYPE_NAN) && in wiphy_verify_iface_combinations()
681 if (WARN_ON(types & BIT(NL80211_IFTYPE_ADHOC) && in wiphy_verify_iface_combinations()
691 if (WARN_ON((wiphy->interface_modes & types) != types)) in wiphy_verify_iface_combinations()
695 if (WARN_ON(all_iftypes & BIT(NL80211_IFTYPE_WDS))) in wiphy_verify_iface_combinations()
699 if (WARN_ON(cnt < c->max_interfaces)) in wiphy_verify_iface_combinations()
745 if (WARN_ON(wiphy->wowlan && in wiphy_register()
749 if (WARN_ON(wiphy->wowlan && in wiphy_register()
754 if (WARN_ON((wiphy->features & NL80211_FEATURE_TDLS_CHANNEL_SWITCH) && in wiphy_register()
759 if (WARN_ON((wiphy->interface_modes & BIT(NL80211_IFTYPE_NAN)) && in wiphy_register()
765 if (WARN_ON(wiphy->interface_modes & BIT(NL80211_IFTYPE_WDS))) in wiphy_register()
768 if (WARN_ON(wiphy->pmsr_capa && !wiphy->pmsr_capa->ftm.supported)) in wiphy_register()
772 if (WARN_ON(!wiphy->pmsr_capa->ftm.asap && in wiphy_register()
775 if (WARN_ON(!wiphy->pmsr_capa->ftm.preambles || in wiphy_register()
778 if (WARN_ON(wiphy->pmsr_capa->ftm.preambles & in wiphy_register()
785 if (WARN_ON((wiphy->pmsr_capa->ftm.trigger_based || in wiphy_register()
790 if (WARN_ON(wiphy->pmsr_capa->ftm.bandwidths & in wiphy_register()
803 if (WARN_ON((wiphy->regulatory_flags & REGULATORY_WIPHY_SELF_MANAGED) && in wiphy_register()
811 if (WARN_ON(wiphy->coalesce && in wiphy_register()
819 if (WARN_ON(wiphy->ap_sme_capa && in wiphy_register()
823 if (WARN_ON(wiphy->addresses && !wiphy->n_addresses)) in wiphy_register()
826 if (WARN_ON(wiphy->addresses && in wiphy_register()
832 if (WARN_ON(wiphy->max_acl_mac_addrs && in wiphy_register()
840 if (WARN_ON(wiphy->bss_select_support && in wiphy_register()
844 if (WARN_ON(wiphy_ext_feature_isset(&rdev->wiphy, in wiphy_register()
849 if (WARN_ON(!(rdev->wiphy.flags & WIPHY_FLAG_SUPPORTS_FW_ROAM) && in wiphy_register()
857 WARN_ON(!ifmodes); in wiphy_register()
859 if (WARN_ON(ifmodes != wiphy->interface_modes)) in wiphy_register()
877 if (WARN_ON(!sband->n_channels)) in wiphy_register()
883 if (WARN_ON((band != NL80211_BAND_60GHZ && in wiphy_register()
888 if (WARN_ON(band == NL80211_BAND_6GHZ && in wiphy_register()
910 if (WARN_ON(sband->n_bitrates > 32)) in wiphy_register()
921 if (WARN_ON(sband->channels[i].freq_offset >= 1000)) in wiphy_register()
930 if (WARN_ON(!iftd->types_mask)) in wiphy_register()
932 if (WARN_ON(types & iftd->types_mask)) in wiphy_register()
936 if (WARN_ON(!iftd->he_cap.has_he)) in wiphy_register()
956 if (WARN_ON(iftd->eht_cap.has_eht && in wiphy_register()
961 if (WARN_ON(!have_he && band == NL80211_BAND_6GHZ)) in wiphy_register()
968 WARN_ON(1); in wiphy_register()
978 if (WARN_ON(!rdev->wiphy.vendor_commands[i].policy)) in wiphy_register()
980 if (WARN_ON(!rdev->wiphy.vendor_commands[i].doit && in wiphy_register()
986 if (WARN_ON(rdev->wiphy.wowlan && rdev->wiphy.wowlan->n_patterns && in wiphy_register()
1100 if (WARN_ON(wiphy->extended_capabilities[j] & in wiphy_register()
1157 if (WARN_ON(--runaway_limit == 0)) in cfg80211_process_wiphy_works()
1182 WARN_ON(!list_empty(&rdev->wiphy.wdev_list)); in wiphy_unregister()
1238 WARN_ON(!list_empty(&rdev->wiphy_work_list)); in cfg80211_dev_free()
1340 if (WARN_ON(curbss)) { in _cfg80211_unregister_wdev()
1532 if (WARN_ON(!wdev)) in cfg80211_register_netdevice()
1569 WARN_ON(wdev->iftype == NL80211_IFTYPE_UNSPECIFIED); in cfg80211_netdev_notifier_call()
1611 if (WARN_ON(!rdev->scan_req->notified && in cfg80211_netdev_notifier_call()
1620 if (WARN_ON(pos->dev == wdev->netdev)) in cfg80211_netdev_notifier_call()
1704 WARN_ON(cfg80211_switch_netns(rdev, &init_net)); in cfg80211_pernet_exit()