3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

netdev: use work priorities rather than hard coding

This commit is contained in:
James Prestwood 2022-01-11 09:45:12 -08:00 committed by Denis Kenzior
parent 217bb6dc65
commit 87e1045b11

View File

@ -4039,8 +4039,8 @@ build_cmd_connect:
NL80211_EXT_FEATURE_CAN_REPLACE_PTK0)) NL80211_EXT_FEATURE_CAN_REPLACE_PTK0))
handshake_state_set_no_rekey(hs, true); handshake_state_set_no_rekey(hs, true);
wiphy_radio_work_insert(netdev->wiphy, &netdev->work, 1, wiphy_radio_work_insert(netdev->wiphy, &netdev->work,
&connect_work_ops); WIPHY_WORK_PRIORITY_CONNECT, &connect_work_ops);
} }
int netdev_connect(struct netdev *netdev, struct scan_bss *bss, int netdev_connect(struct netdev *netdev, struct scan_bss *bss,
@ -4619,8 +4619,8 @@ int netdev_fast_transition(struct netdev *netdev,
netdev_get_oci, netdev); netdev_get_oci, netdev);
memcpy(netdev->ap->prev_bssid, orig_bss->addr, ETH_ALEN); memcpy(netdev->ap->prev_bssid, orig_bss->addr, ETH_ALEN);
wiphy_radio_work_insert(netdev->wiphy, &netdev->work, 1, wiphy_radio_work_insert(netdev->wiphy, &netdev->work,
&ft_work_ops); WIPHY_WORK_PRIORITY_CONNECT, &ft_work_ops);
return 0; return 0;
} }
@ -4660,8 +4660,8 @@ int netdev_fast_transition_over_ds(struct netdev *netdev,
netdev); netdev);
memcpy(netdev->ap->prev_bssid, orig_bss->addr, ETH_ALEN); memcpy(netdev->ap->prev_bssid, orig_bss->addr, ETH_ALEN);
wiphy_radio_work_insert(netdev->wiphy, &netdev->work, 1, wiphy_radio_work_insert(netdev->wiphy, &netdev->work,
&ft_work_ops); WIPHY_WORK_PRIORITY_CONNECT, &ft_work_ops);
return 0; return 0;
} }