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()
261 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_NAN)) in cfg80211_stop_nan()
529 WARN_ON(ops->add_key && (!ops->del_key || !ops->set_default_key)); in wiphy_new_nm()
530 WARN_ON(ops->auth && (!ops->assoc || !ops->deauth || !ops->disassoc)); in wiphy_new_nm()
531 WARN_ON(ops->connect && !ops->disconnect); in wiphy_new_nm()
532 WARN_ON(ops->join_ibss && !ops->leave_ibss); in wiphy_new_nm()
533 WARN_ON(ops->add_virtual_intf && !ops->del_virtual_intf); in wiphy_new_nm()
534 WARN_ON(ops->add_station && !ops->del_station); in wiphy_new_nm()
535 WARN_ON(ops->add_mpath && !ops->del_mpath); in wiphy_new_nm()
536 WARN_ON(ops->join_mesh && !ops->leave_mesh); in wiphy_new_nm()
537 WARN_ON(ops->start_p2p_device && !ops->stop_p2p_device); in wiphy_new_nm()
538 WARN_ON(ops->start_ap && !ops->stop_ap); in wiphy_new_nm()
539 WARN_ON(ops->join_ocb && !ops->leave_ocb); in wiphy_new_nm()
540 WARN_ON(ops->suspend && !ops->resume); in wiphy_new_nm()
541 WARN_ON(ops->sched_scan_start && !ops->sched_scan_stop); in wiphy_new_nm()
542 WARN_ON(ops->remain_on_channel && !ops->cancel_remain_on_channel); in wiphy_new_nm()
543 WARN_ON(ops->tdls_channel_switch && !ops->tdls_cancel_channel_switch); in wiphy_new_nm()
544 WARN_ON(ops->add_tx_ts && !ops->del_tx_ts); in wiphy_new_nm()
696 if (WARN_ON((c->max_interfaces < 2) && !c->radar_detect_widths)) in wiphy_verify_iface_combinations()
700 if (WARN_ON(!c->num_different_channels)) in wiphy_verify_iface_combinations()
708 WARN_ON(c->radar_detect_widths && in wiphy_verify_iface_combinations()
712 if (WARN_ON(!c->n_limits)) in wiphy_verify_iface_combinations()
719 if (WARN_ON(types & all_iftypes)) in wiphy_verify_iface_combinations()
723 if (WARN_ON(!c->limits[j].max)) in wiphy_verify_iface_combinations()
727 if (WARN_ON(wiphy->software_iftypes & types)) in wiphy_verify_iface_combinations()
735 WARN_ON(types & BIT(NL80211_IFTYPE_P2P_DEVICE) && in wiphy_verify_iface_combinations()
740 if (WARN_ON(types & BIT(NL80211_IFTYPE_NAN) && in wiphy_verify_iface_combinations()
754 if (WARN_ON(types & BIT(NL80211_IFTYPE_ADHOC) && in wiphy_verify_iface_combinations()
764 if (WARN_ON((wiphy->interface_modes & types) != types)) in wiphy_verify_iface_combinations()
768 if (WARN_ON(all_iftypes & BIT(NL80211_IFTYPE_WDS))) in wiphy_verify_iface_combinations()
772 if (WARN_ON(cnt < c->max_interfaces)) in wiphy_verify_iface_combinations()
818 if (WARN_ON(wiphy->wowlan && in wiphy_register()
822 if (WARN_ON(wiphy->wowlan && in wiphy_register()
827 if (WARN_ON((wiphy->features & NL80211_FEATURE_TDLS_CHANNEL_SWITCH) && in wiphy_register()
832 if (WARN_ON((wiphy->interface_modes & BIT(NL80211_IFTYPE_NAN)) && in wiphy_register()
838 if (WARN_ON((wiphy->interface_modes & BIT(NL80211_IFTYPE_NAN_DATA)) && in wiphy_register()
842 if (WARN_ON(wiphy->interface_modes & BIT(NL80211_IFTYPE_WDS))) in wiphy_register()
845 if (WARN_ON(wiphy->pmsr_capa && !wiphy->pmsr_capa->ftm.supported)) in wiphy_register()
849 if (WARN_ON(!wiphy->pmsr_capa->ftm.asap && in wiphy_register()
852 if (WARN_ON(!wiphy->pmsr_capa->ftm.preambles || in wiphy_register()
855 if (WARN_ON(wiphy->pmsr_capa->ftm.preambles & in wiphy_register()
862 if (WARN_ON((wiphy->pmsr_capa->ftm.trigger_based || in wiphy_register()
867 if (WARN_ON(wiphy->pmsr_capa->ftm.bandwidths & in wiphy_register()
880 if (WARN_ON((wiphy->regulatory_flags & REGULATORY_WIPHY_SELF_MANAGED) && in wiphy_register()
888 if (WARN_ON(wiphy->coalesce && in wiphy_register()
896 if (WARN_ON(wiphy->ap_sme_capa && in wiphy_register()
900 if (WARN_ON(wiphy->addresses && !wiphy->n_addresses)) in wiphy_register()
903 if (WARN_ON(wiphy->addresses && in wiphy_register()
909 if (WARN_ON(wiphy->max_acl_mac_addrs && in wiphy_register()
917 if (WARN_ON(wiphy->bss_select_support && in wiphy_register()
921 if (WARN_ON(wiphy_ext_feature_isset(&rdev->wiphy, in wiphy_register()
926 if (WARN_ON(!(rdev->wiphy.flags & WIPHY_FLAG_SUPPORTS_FW_ROAM) && in wiphy_register()
934 WARN_ON(!ifmodes); in wiphy_register()
936 if (WARN_ON(ifmodes != wiphy->interface_modes)) in wiphy_register()
954 if (WARN_ON(!sband->n_channels)) in wiphy_register()
960 if (WARN_ON((band != NL80211_BAND_60GHZ && in wiphy_register()
965 if (WARN_ON(band == NL80211_BAND_6GHZ && in wiphy_register()
987 if (WARN_ON(sband->n_bitrates > 32)) in wiphy_register()
998 if (WARN_ON(sband->channels[i].freq_offset >= 1000)) in wiphy_register()
1007 if (WARN_ON(!iftd->types_mask)) in wiphy_register()
1009 if (WARN_ON(types & iftd->types_mask)) in wiphy_register()
1013 if (WARN_ON(!iftd->he_cap.has_he)) in wiphy_register()
1033 if (WARN_ON(iftd->eht_cap.has_eht && in wiphy_register()
1038 if (WARN_ON(!have_he && band == NL80211_BAND_6GHZ)) in wiphy_register()
1045 WARN_ON(1); in wiphy_register()
1055 if (WARN_ON(!rdev->wiphy.vendor_commands[i].policy)) in wiphy_register()
1057 if (WARN_ON(!rdev->wiphy.vendor_commands[i].doit && in wiphy_register()
1063 if (WARN_ON(rdev->wiphy.wowlan && rdev->wiphy.wowlan->n_patterns && in wiphy_register()
1177 if (WARN_ON(wiphy->extended_capabilities[j] & in wiphy_register()
1234 if (WARN_ON(--runaway_limit == 0)) in cfg80211_process_wiphy_works()
1259 WARN_ON(!list_empty(&rdev->wiphy.wdev_list)); in wiphy_unregister()
1315 WARN_ON(!list_empty(&rdev->wiphy_work_list)); in cfg80211_dev_free()
1417 if (WARN_ON(curbss)) { in _cfg80211_unregister_wdev()
1625 if (WARN_ON(!wdev)) in cfg80211_register_netdevice()
1662 WARN_ON(wdev->iftype == NL80211_IFTYPE_UNSPECIFIED); in cfg80211_netdev_notifier_call()
1703 if (WARN_ON(!rdev->scan_req->notified && in cfg80211_netdev_notifier_call()
1712 if (WARN_ON(pos->dev == wdev->netdev)) in cfg80211_netdev_notifier_call()
1813 WARN_ON(cfg80211_switch_netns(rdev, &init_net)); in cfg80211_pernet_exit()