Can one program see another's scan-results?
Is there a way to open a netlink socket and have it receive all scan results (even those requested by other applications)?
Thanks,
Ben
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com
Quoted 2 lines · Ben Greear
Is there a way to open a netlink socket and have it receive all scan results (even those requested by other applications)?
What do you mean by scan results? The results themselves? No, they are a dump and unicast to one application. The fact that a scan finished? Yes, of course.
johannes
Quoted 7 lines · Johannes Berg
Quoted 2 lines · Ben Greear
Is there a way to open a netlink socket and have it receive all scan results (even those requested by other applications)?
What do you mean by scan results? The results themselves? No, they are a dump and unicast to one application. The fact that a scan finished? Yes, of course.
I'd like the results themselves..for instance, just piggyback on whatever supplicant is already doing to get periodic updates, and of course I'd end up requesting some scans myself from time to time if a user wanted an immediate update.
I was hoping it could be something like just listening for network-device and route updates like netlink already supports.
Since scanning is relatively slow and expensive, it seems like a good idea to allow re-using the results...
Thanks,
Ben
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com
Quoted 14 lines · Ben Greear
Quoted 7 lines · Johannes Berg
Quoted 2 lines · Ben Greear
Is there a way to open a netlink socket and have it receive all scan results (even those requested by other applications)?
What do you mean by scan results? The results themselves? No, they are a dump and unicast to one application. The fact that a scan finished? Yes, of course.
I'd like the results themselves..for instance, just piggyback on whatever supplicant is already doing to get periodic updates, and of course I'd end up requesting some scans myself from time to time if a user wanted an immediate update.
Quoted 5 lines
I was hoping it could be something like just listening for network-device and route updates like netlink already supports.
Since scanning is relatively slow and expensive, it seems like a good idea to allow re-using the results...
Well, umm.. you can just request the results? A la "iw wlan0 scan dump"?
johannes
Quoted 15 lines · Johannes Berg
Quoted 14 lines · Ben Greear
Quoted 7 lines · Johannes Berg
Quoted 2 lines · Ben Greear
Is there a way to open a netlink socket and have it receive all scan results (even those requested by other applications)?
What do you mean by scan results? The results themselves? No, they are a dump and unicast to one application. The fact that a scan finished? Yes, of course.
I'd like the results themselves..for instance, just piggyback on whatever supplicant is already doing to get periodic updates, and of course I'd end up requesting some scans myself from time to time if a user wanted an immediate update.
Quoted 7 lines
Quoted 5 lines
I was hoping it could be something like just listening for network-device and route updates like netlink already supports.
Since scanning is relatively slow and expensive, it seems like a good idea to allow re-using the results...
Well, umm.. you can just request the results? A la "iw wlan0 scan dump"?
So, you could listen for the 'scan-complete' netlink message, and then when you receive it, immediately go ask for a 'scan dump' for that interface, and immediately get the last scan results?
Aside from a small race (what if something else did something to invalidate those scan results), that sounds like it might be good enough to me.
Thanks,
Ben
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com
Quoted 19 lines · Ben Greear
Quoted 18 lines · Johannes Berg
Quoted 17 lines · Ben Greear
Quoted 7 lines · Johannes Berg
Quoted 2 lines · Ben Greear
Is there a way to open a netlink socket and have it receive all scan results (even those requested by other applications)?
What do you mean by scan results? The results themselves? No, they are a dump and unicast to one application. The fact that a scan finished? Yes, of course.
I'd like the results themselves..for instance, just piggyback on whatever supplicant is already doing to get periodic updates, and of course I'd end up requesting some scans myself from time to time if a user wanted an immediate update.
I was hoping it could be something like just listening for network-device and route updates like netlink already supports.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Since scanning is relatively slow and expensive, it seems like a good idea to allow re-using the results...
Well, umm.. you can just request the results? A la "iw wlan0 scan dump"?
So, you could listen for the 'scan-complete' netlink message, and then when you receive it, immediately go ask for a 'scan dump' for that interface, and immediately get the last scan results?
Yes.
Quoted 2 lines
Aside from a small race (what if something else did something to invalidate those scan results), that sounds like it might be good enough to me.
There's not much that anything could do to do that.
johannes