MCC p2p_connect op channel selection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

When STA-VIF is connected to AP: Channel 10

with p2p_oper_channel=1, using p2p_connect with go_intent=15, the
Group is starting in channel 10 even though the driver is MCC capable.

So we have added "p2p_ignore_shared_freq" to the config file, still
the same behavior is seen.
After some debug, found the issue in below code.

        res = wpas_p2p_setup_freqs(wpa_s, freq, &force_freq, &pref_freq,
                                   go_intent == 15);
//Here the pref_freq will be set to STA-VIF's operating channel.
//also the p2p->op_channel is overwritten with pref_freq in
p2p_prepare_channel_pref
        if (res)
                return res;

//As config file has "p2p_ignore_shared_freq", own_preference_freq=0
but the pref_freq is still set.
        wpas_p2p_set_own_freq_preference(wpa_s,
                                         force_freq ? force_freq : pref_freq);

So it chooses STA-VIF's channel, and we are not able to enter in to MCC mode.

What is the ideal solution?

1) Change wpas_p2p_setup_freqs to take cfg->op_channel as highest priority.
2) Make the pref_freq 0  (similar thing is done for invite case), but
still the op_channel in config file is not honored.
3) Make the pref_freq=cfg->op_channel.

-- 
Thanks,
Regards,
Chaitanya T K.

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux