Skip to content

Number of macs may change between calls to qcsapi_sockrpc #6

@UPC-PaalDriveklepp

Description

@UPC-PaalDriveklepp

macadresser="`qcsapi_sockrpc get_station_mac_addr wifi0 $antal`;$macadresser"

This command may fail if the number of macs change between the get_count_assoc and the get_station_mac_addr.

I added this in my version, to break the loop if the mac index is out of range:

	mac=`qcsapi_sockrpc get_station_mac_addr wifi0 $antal`
	if [ $? -ne 0 ]; then
	    break;
	fi
        macadresser="$mac;$macadresser"

Makes sense? I haven't actually seen it fail though...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions