mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 10:39:23 +01:00
device: Make scanning into a bitfield
This commit is contained in:
parent
ecacdd88e4
commit
a766823ffc
@ -70,12 +70,13 @@ struct device {
|
||||
struct l_queue *autoconnect_list;
|
||||
struct l_dbus_message *connect_pending;
|
||||
struct l_dbus_message *disconnect_pending;
|
||||
bool scanning;
|
||||
uint32_t netdev_watch_id;
|
||||
struct watchlist state_watches;
|
||||
|
||||
struct wiphy *wiphy;
|
||||
struct netdev *netdev;
|
||||
|
||||
bool scanning : 1;
|
||||
};
|
||||
|
||||
static struct watchlist device_watches;
|
||||
@ -999,8 +1000,9 @@ static bool device_property_get_scanning(struct l_dbus *dbus,
|
||||
void *user_data)
|
||||
{
|
||||
struct device *device = user_data;
|
||||
bool scanning = device->scanning;
|
||||
|
||||
l_dbus_message_builder_append_basic(builder, 'b', &device->scanning);
|
||||
l_dbus_message_builder_append_basic(builder, 'b', &scanning);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user