Home
last modified time | relevance | path

Searched refs:macPrefix (Results 1 – 2 of 2) sorted by relevance

/device/generic/goldfish/wifi/mac80211_create_radios/
Dmain.cpp205 const int nRadios, const int macPrefix, in createRadios() argument
209 mac[1] = (macPrefix >> CHAR_BIT) & 0xFF; in createRadios()
210 mac[2] = macPrefix & 0xFF; in createRadios()
228 int manageRadios(const int nRadios, const int macPrefix, in manageRadios() argument
240 ret = createRadios(socket.get(), netlinkFamily, nRadios, macPrefix, in manageRadios()
278 int macPrefix; in main() local
279 if (!parseInt(argv[argIndex], &macPrefix)) { return printUsage(stderr, 1); } in main()
280 if (macPrefix < 0) { return printUsage(stderr, 1); } in main()
281 if (macPrefix > UINT16_MAX) { return printUsage(stderr, 1); } in main()
283 return manageRadios(nRadios, macPrefix, enablePmsr); in main()
/device/google/cuttlefish/guest/commands/setup_wifi/
Dmain.cpp41 int macPrefix = stoi(mac_prefix); in prefix_to_mac() local
43 mac[1] = (macPrefix >> CHAR_BIT) & 0xFF; in prefix_to_mac()
44 mac[2] = macPrefix & 0xFF; in prefix_to_mac()