[PATCH 2/3] P2P: always re-select oper channel if not hard coded

Jouni Malinen j
Tue Dec 25 10:07:48 PST 2012

On Tue, Sep 04, 2012 at 08:52:50PM +0300, Arik Nemtsov wrote:
> Since the operating channel is randomly set to 1/6/11 on init, which is
> always in the channel intersection, we were effectively ignoring the set
> of p2p preferred channels.
> Fix this by trying to get the best channel we can, unless the user hard
> coded the operating channel in the configuration file. Fall back to the
> initial randomly selected channel if a better one cannot be chosen.

I've been trying to discourage use of p2p_oper_{reg_class,channel}
parameters in the configuration file since these were not really ever
designed to be used for normal use cases (i.e., they were only for
initial testing). As such, I'm not sure whether I would really like to
apply this change since it adds more uses for these parameters. The
proper way to force a specific channel is with the freq parameter to the
P2P command that is used to form the group.

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list