Added host_macaddress parameter to udsScanBeacons().
This commit is contained in:
parent
d654cf1b88
commit
fa70037055
@ -162,8 +162,9 @@ void udsGenerateDefaultNetworkStruct(udsNetworkStruct *network, u32 wlancommID,
|
|||||||
* @Param total_networks Total number of networks stored under the networks buffer.
|
* @Param total_networks Total number of networks stored under the networks buffer.
|
||||||
* @param wlancommID Unique local-WLAN communications ID for each application.
|
* @param wlancommID Unique local-WLAN communications ID for each application.
|
||||||
* @param id8 Additional ID that can be used by the application for different types of networks.
|
* @param id8 Additional ID that can be used by the application for different types of networks.
|
||||||
|
* @param host_macaddress When set, this code will only return network info from the specified host MAC address.
|
||||||
*/
|
*/
|
||||||
Result udsScanBeacons(u8 *outbuf, u32 maxsize, udsNetworkScanInfo **networks, u32 *total_networks, u32 wlancommID, u8 id8);
|
Result udsScanBeacons(u8 *outbuf, u32 maxsize, udsNetworkScanInfo **networks, u32 *total_networks, u32 wlancommID, u8 id8, u8 *host_macaddress);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Create a bind.
|
* @brief Create a bind.
|
||||||
|
@ -332,7 +332,7 @@ Result udsDisconnectNetwork(void)
|
|||||||
return cmdbuf[1];
|
return cmdbuf[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
Result udsScanBeacons(u8 *outbuf, u32 maxsize, udsNetworkScanInfo **networks, u32 *total_networks, u32 wlancommID, u8 id8)
|
Result udsScanBeacons(u8 *outbuf, u32 maxsize, udsNetworkScanInfo **networks, u32 *total_networks, u32 wlancommID, u8 id8, u8 *host_macaddress)
|
||||||
{
|
{
|
||||||
Result ret=0;
|
Result ret=0;
|
||||||
Handle event=0;
|
Handle event=0;
|
||||||
@ -353,6 +353,7 @@ Result udsScanBeacons(u8 *outbuf, u32 maxsize, udsNetworkScanInfo **networks, u3
|
|||||||
scaninput.unk_x6 = 0x6e;
|
scaninput.unk_x6 = 0x6e;
|
||||||
|
|
||||||
memset(scaninput.mac_address, 0xff, sizeof(scaninput.mac_address));
|
memset(scaninput.mac_address, 0xff, sizeof(scaninput.mac_address));
|
||||||
|
if(host_macaddress)memcpy(scaninput.mac_address, host_macaddress, sizeof(scaninput.mac_address));
|
||||||
|
|
||||||
if(maxsize < sizeof(nwmBeaconDataReplyHeader))return -2;
|
if(maxsize < sizeof(nwmBeaconDataReplyHeader))return -2;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user