This could have been using an uninitialized variable instead of
purposefully random value in picking up the channel. There is not
much of a difference for the use case here, but anyway, we may
as well do what was initially planned here and.
* For initial tests, pick the operation channel randomly.
* TODO: Use scan results (etc.) to select the best channel.
*/
+ os_get_random((u8 *) &r, sizeof(r));
p2p.op_channel = 1 + r % 11;
}
wpa_printf(MSG_DEBUG, "P2P: Own listen channel: %d "