Lines Matching refs:state

2114 			      int flags, struct nl80211_dump_wiphy_state *state)
2131 if (WARN_ON(!state))
2144 switch (state->split_start) {
2186 state->split_start++;
2187 if (state->split)
2233 state->split_start++;
2234 if (state->split)
2241 state->split_start++;
2242 if (state->split)
2251 for (band = state->band_start;
2256 if (band > NL80211_BAND_5GHZ && !state->split)
2268 switch (state->chan_start) {
2271 state->split))
2273 state->chan_start++;
2274 if (state->split)
2284 for (i = state->chan_start - 1;
2296 state->split))
2300 if (state->split)
2304 state->chan_start = i + 2;
2306 state->chan_start = 0;
2312 if (state->split) {
2314 if (state->chan_start)
2322 state->band_start = band + 1;
2324 state->band_start = 0;
2327 if (state->band_start == 0 && state->chan_start == 0)
2328 state->split_start++;
2329 if (state->split)
2341 if (state->split) {
2357 state->split_start++;
2358 if (state->split)
2373 state->split_start++;
2374 if (state->split)
2379 if (nl80211_send_wowlan(msg, rdev, state->split))
2381 state->split_start++;
2382 if (state->split)
2385 state->split_start++;
2394 state->split))
2397 state->split_start++;
2398 if (state->split)
2413 if (state->split)
2440 if (state->split)
2441 state->split_start++;
2443 state->split_start = 0;
2496 state->split_start++;
2512 state->split_start++;
2548 state->split_start++;
2590 state->split_start++;
2602 for (i = state->capa_start;
2622 if (state->split)
2627 state->capa_start = i + 1;
2658 state->split_start++;
2664 state->split_start++;
2680 state->split_start = 0;
2694 struct nl80211_dump_wiphy_state *state)
2712 state->split = tb[NL80211_ATTR_SPLIT_WIPHY_DUMP];
2714 state->filter_wiphy = nla_get_u32(tb[NL80211_ATTR_WIPHY]);
2716 state->filter_wiphy = nla_get_u64(tb[NL80211_ATTR_WDEV]) >> 32;
2730 state->filter_wiphy = rdev->wiphy_idx;
2743 struct nl80211_dump_wiphy_state *state = (void *)cb->args[0];
2747 if (!state) {
2748 state = kzalloc(sizeof(*state), GFP_KERNEL);
2749 if (!state) {
2753 state->filter_wiphy = -1;
2754 ret = nl80211_dump_wiphy_parse(skb, cb, state);
2756 kfree(state);
2760 cb->args[0] = (long)state;
2766 if (++idx <= state->start)
2768 if (state->filter_wiphy != -1 &&
2769 state->filter_wiphy != rdev->wiphy_idx)
2777 NLM_F_MULTI, state);
2793 !skb->len && !state->split &&
2796 state->split_start = 0;
2803 } while (state->split_start > 0);
2808 state->start = idx;
2823 struct nl80211_dump_wiphy_state state = {};
2831 &state) < 0) {
3553 struct nl80211_dump_wiphy_state state = {
3557 ret = nl80211_dump_wiphy_parse(skb, cb, &state);
3561 filter_wiphy = state.filter_wiphy;
9612 * Since we no longer track auth state, ignore
9613 * requests to only change local state.
11342 bool state;
11355 state = (ps_state == NL80211_PS_ENABLED) ? true : false;
11357 if (state == wdev->ps)
11360 err = rdev_set_power_mgmt(rdev, dev, state, wdev->ps_timeout);
11362 wdev->ps = state;
15589 struct nl80211_dump_wiphy_state state = {};
15598 if (nl80211_send_wiphy(rdev, cmd, msg, 0, 0, 0, &state) < 0) {
17590 unsigned long state,
17598 if (state != NETLINK_URELEASE || notify->protocol != NETLINK_GENERIC)