mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-09 00:12:36 +01:00
device: Obtain station using station_find
Since device object no longer creates / destroys station objects, use station_find inside ap directed roam events to direct these to the station interface.
This commit is contained in:
parent
8632b81397
commit
87118959e6
@ -52,7 +52,6 @@ struct device {
|
|||||||
|
|
||||||
struct wiphy *wiphy;
|
struct wiphy *wiphy;
|
||||||
struct netdev *netdev;
|
struct netdev *netdev;
|
||||||
struct station *station;
|
|
||||||
|
|
||||||
bool powered : 1;
|
bool powered : 1;
|
||||||
|
|
||||||
@ -67,7 +66,10 @@ static void device_ap_roam_frame_event(struct netdev *netdev,
|
|||||||
void *user_data)
|
void *user_data)
|
||||||
{
|
{
|
||||||
struct device *device = user_data;
|
struct device *device = user_data;
|
||||||
struct station *station = device->station;
|
struct station *station = station_find(device->index);
|
||||||
|
|
||||||
|
if (!station)
|
||||||
|
return;
|
||||||
|
|
||||||
station_ap_directed_roam(station, hdr, body, body_len);
|
station_ap_directed_roam(station, hdr, body, body_len);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user