This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

p2p GO automatically channel select?

Other Parts Discussed in Thread: WL1835MOD

We have found below data from wpa_supplicant "README-P2P"

 

=================================================================

p2p_group_add [persistent|persistent=<network id>] [freq=<freq in MHz>]

[ht40] [vht]

 

Set up a P2P group owner manually (i.e., without group owner

negotiation with a specific peer). This is also known as autonomous

GO. Optional persistent=<network id> can be used to specify restart of

a persistent group. Optional freq=<freq in MHz> can be used to force

the GO to be started on a specific frequency. Special freq=2 or freq=5

options can be used to request the best 2.4 GHz or 5 GHz band channel

to be selected automatically.

=================================================================

In case of  setting Freq =2 (also using 2.4GHz ) as above , if GO makes group, there are searching and setting optimal Frequency automatically? Is this also working at  wl1835MOD?

 

Or as above, is there extra function, which is searching and setting optimal Frequency automatically when GO makes Group at WIFI-DIRECT P2P?

  • Hi,

    AFAIK, "freq=2" selects a random channel among 1/6/11.

    Regards,
    Gigi Joseph.
  • Hi Gigi Joseph,

    Select random frequency?
    How to search best frequency channel for WIFI-DIRECT P2P?


    Thanks,
    Moon.
  • Hi Moon,

    As per the code:

    if (freq == 2) {
    wpa_printf(MSG_DEBUG, "P2P: Request to start GO on 2.4 GHz "
    "band");
    if (wpa_s->best_24_freq > 0 &&
    p2p_supported_freq(wpa_s->global->p2p,
    wpa_s->best_24_freq)) {
    freq = wpa_s->best_24_freq;
    wpa_printf(MSG_DEBUG, "P2P: Use best 2.4 GHz band "
    "channel: %d MHz", freq);
    } else {
    os_get_random((u8 *) &r, sizeof(r));
    freq = 2412 + (r % 3) * 25;
    wpa_printf(MSG_DEBUG, "P2P: Use random 2.4 GHz band "
    "channel: %d MHz", freq);
    }
    }

    The "best_24_freq" is set when the driver sends the "EVENT_BEST_CHANNEL" event to the supplicant. The wl18xx driver does not send this. Hence the supplicant will pick a channel among 1/6/11.


    Regards,
    Gigi Joseph.