Lines Matching refs:WARN_ON

186 			WARN_ON(err);  in cfg80211_switch_netns()
196 WARN_ON(err); in cfg80211_switch_netns()
213 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_P2P_DEVICE)) in cfg80211_stop_p2p_device()
225 if (WARN_ON(!rdev->scan_req->notified)) in cfg80211_stop_p2p_device()
236 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_NAN)) in cfg80211_stop_nan()
391 WARN_ON(ops->add_key && (!ops->del_key || !ops->set_default_key)); in wiphy_new_nm()
392 WARN_ON(ops->auth && (!ops->assoc || !ops->deauth || !ops->disassoc)); in wiphy_new_nm()
393 WARN_ON(ops->connect && !ops->disconnect); in wiphy_new_nm()
394 WARN_ON(ops->join_ibss && !ops->leave_ibss); in wiphy_new_nm()
395 WARN_ON(ops->add_virtual_intf && !ops->del_virtual_intf); in wiphy_new_nm()
396 WARN_ON(ops->add_station && !ops->del_station); in wiphy_new_nm()
397 WARN_ON(ops->add_mpath && !ops->del_mpath); in wiphy_new_nm()
398 WARN_ON(ops->join_mesh && !ops->leave_mesh); in wiphy_new_nm()
399 WARN_ON(ops->start_p2p_device && !ops->stop_p2p_device); in wiphy_new_nm()
400 WARN_ON(ops->start_ap && !ops->stop_ap); in wiphy_new_nm()
401 WARN_ON(ops->join_ocb && !ops->leave_ocb); in wiphy_new_nm()
402 WARN_ON(ops->suspend && !ops->resume); in wiphy_new_nm()
403 WARN_ON(ops->sched_scan_start && !ops->sched_scan_stop); in wiphy_new_nm()
404 WARN_ON(ops->remain_on_channel && !ops->cancel_remain_on_channel); in wiphy_new_nm()
405 WARN_ON(ops->tdls_channel_switch && !ops->tdls_cancel_channel_switch); in wiphy_new_nm()
406 WARN_ON(ops->add_tx_ts && !ops->del_tx_ts); in wiphy_new_nm()
546 if (WARN_ON((c->max_interfaces < 2) && !c->radar_detect_widths)) in wiphy_verify_combinations()
550 if (WARN_ON(!c->num_different_channels)) in wiphy_verify_combinations()
557 if (WARN_ON(c->num_different_channels > in wiphy_verify_combinations()
562 if (WARN_ON(c->radar_detect_widths && in wiphy_verify_combinations()
566 if (WARN_ON(!c->n_limits)) in wiphy_verify_combinations()
573 if (WARN_ON(types & all_iftypes)) in wiphy_verify_combinations()
577 if (WARN_ON(!c->limits[j].max)) in wiphy_verify_combinations()
581 if (WARN_ON(wiphy->software_iftypes & types)) in wiphy_verify_combinations()
585 if (WARN_ON(types & BIT(NL80211_IFTYPE_P2P_DEVICE) && in wiphy_verify_combinations()
590 if (WARN_ON(types & BIT(NL80211_IFTYPE_NAN) && in wiphy_verify_combinations()
604 if (WARN_ON(types & BIT(NL80211_IFTYPE_ADHOC) && in wiphy_verify_combinations()
614 if (WARN_ON((wiphy->interface_modes & types) != types)) in wiphy_verify_combinations()
619 if (WARN_ON(all_iftypes & BIT(NL80211_IFTYPE_WDS))) in wiphy_verify_combinations()
624 if (WARN_ON(cnt < c->max_interfaces)) in wiphy_verify_combinations()
642 if (WARN_ON(wiphy->wowlan && in wiphy_register()
646 if (WARN_ON(wiphy->wowlan && in wiphy_register()
651 if (WARN_ON((wiphy->features & NL80211_FEATURE_TDLS_CHANNEL_SWITCH) && in wiphy_register()
656 if (WARN_ON((wiphy->interface_modes & BIT(NL80211_IFTYPE_NAN)) && in wiphy_register()
663 if (WARN_ON(wiphy->interface_modes & BIT(NL80211_IFTYPE_WDS))) in wiphy_register()
682 if (WARN_ON((wiphy->regulatory_flags & REGULATORY_WIPHY_SELF_MANAGED) && in wiphy_register()
690 if (WARN_ON(wiphy->coalesce && in wiphy_register()
698 if (WARN_ON(wiphy->ap_sme_capa && in wiphy_register()
702 if (WARN_ON(wiphy->addresses && !wiphy->n_addresses)) in wiphy_register()
705 if (WARN_ON(wiphy->addresses && in wiphy_register()
711 if (WARN_ON(wiphy->max_acl_mac_addrs && in wiphy_register()
719 if (WARN_ON(wiphy->bss_select_support && in wiphy_register()
723 if (WARN_ON(wiphy_ext_feature_isset(&rdev->wiphy, in wiphy_register()
728 if (WARN_ON(!(rdev->wiphy.flags & WIPHY_FLAG_SUPPORTS_FW_ROAM) && in wiphy_register()
736 WARN_ON(!ifmodes); in wiphy_register()
738 if (WARN_ON(ifmodes != wiphy->interface_modes)) in wiphy_register()
754 if (WARN_ON(!sband->n_channels)) in wiphy_register()
760 if (WARN_ON(band != NL80211_BAND_60GHZ && in wiphy_register()
781 if (WARN_ON(sband->n_bitrates > 32)) in wiphy_register()
798 if (WARN_ON(!iftd->types_mask)) in wiphy_register()
800 if (WARN_ON(types & iftd->types_mask)) in wiphy_register()
804 if (WARN_ON(!iftd->he_cap.has_he)) in wiphy_register()
814 WARN_ON(1); in wiphy_register()
819 if (WARN_ON(rdev->wiphy.wowlan && rdev->wiphy.wowlan->n_patterns && in wiphy_register()
889 if (WARN_ON(wiphy->extended_capabilities[j] & in wiphy_register()
947 WARN_ON(!list_empty(&rdev->wiphy.wdev_list)); in wiphy_unregister()
1028 if (WARN_ON(wdev->netdev)) in cfg80211_unregister_wdev()
1169 WARN_ON(wdev->iftype == NL80211_IFTYPE_UNSPECIFIED); in cfg80211_netdev_notifier_call()
1234 if (WARN_ON(!rdev->scan_req->notified)) in cfg80211_netdev_notifier_call()
1241 if (WARN_ON(pos && pos->dev == wdev->netdev)) in cfg80211_netdev_notifier_call()
1331 if (WARN_ON(wdev->current_bss)) { in cfg80211_netdev_notifier_call()
1363 WARN_ON(cfg80211_switch_netns(rdev, &init_net)); in cfg80211_pernet_exit()