mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 04:32:37 +01:00
netdev: Fix style
This commit is contained in:
parent
adb14dfca5
commit
53db703773
12
src/netdev.c
12
src/netdev.c
@ -1714,8 +1714,7 @@ static bool netdev_handle_associate_resp_ies(struct handshake_state *hs,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void netdev_connect_event(struct l_genl_msg *msg,
|
static void netdev_connect_event(struct l_genl_msg *msg, struct netdev *netdev)
|
||||||
struct netdev *netdev)
|
|
||||||
{
|
{
|
||||||
struct l_genl_attr attr;
|
struct l_genl_attr attr;
|
||||||
uint16_t type, len;
|
uint16_t type, len;
|
||||||
@ -1942,8 +1941,7 @@ static struct l_genl_msg *netdev_build_cmd_associate_common(
|
|||||||
* RSN or non-RSN Over-the-air FT Protocol, and with the IE contents
|
* RSN or non-RSN Over-the-air FT Protocol, and with the IE contents
|
||||||
* according to 12.8.4: FT authentication sequence: contents of third message.
|
* according to 12.8.4: FT authentication sequence: contents of third message.
|
||||||
*/
|
*/
|
||||||
static struct l_genl_msg *netdev_build_cmd_ft_reassociate(
|
static struct l_genl_msg *netdev_build_cmd_ft_reassociate(struct netdev *netdev)
|
||||||
struct netdev *netdev)
|
|
||||||
{
|
{
|
||||||
struct l_genl_msg *msg;
|
struct l_genl_msg *msg;
|
||||||
struct iovec iov[3];
|
struct iovec iov[3];
|
||||||
@ -2408,8 +2406,7 @@ static void netdev_cmd_connect_cb(struct l_genl_msg *msg, void *user_data)
|
|||||||
netdev_connect_failed(NULL, netdev);
|
netdev_connect_failed(NULL, netdev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct l_genl_msg *netdev_build_cmd_authenticate(
|
static struct l_genl_msg *netdev_build_cmd_authenticate(struct netdev *netdev,
|
||||||
struct netdev *netdev,
|
|
||||||
uint32_t auth_type,
|
uint32_t auth_type,
|
||||||
const uint8_t *addr)
|
const uint8_t *addr)
|
||||||
{
|
{
|
||||||
@ -2528,7 +2525,8 @@ static void netdev_owe_tx_authenticate(void *user_data)
|
|||||||
NL80211_AUTHTYPE_OPEN_SYSTEM,
|
NL80211_AUTHTYPE_OPEN_SYSTEM,
|
||||||
netdev->handshake->aa);
|
netdev->handshake->aa);
|
||||||
|
|
||||||
if (!l_genl_family_send(nl80211, msg, netdev_owe_auth_cb, netdev, NULL)) {
|
if (!l_genl_family_send(nl80211, msg, netdev_owe_auth_cb,
|
||||||
|
netdev, NULL)) {
|
||||||
l_genl_msg_unref(msg);
|
l_genl_msg_unref(msg);
|
||||||
netdev->result = NETDEV_RESULT_AUTHENTICATION_FAILED;
|
netdev->result = NETDEV_RESULT_AUTHENTICATION_FAILED;
|
||||||
netdev_connect_failed(NULL, netdev);
|
netdev_connect_failed(NULL, netdev);
|
||||||
|
Loading…
Reference in New Issue
Block a user