[PATCH v3 1/2] P2P: Enable 40MHz support for p2p group addition

Rajkumar Manoharan rmanohar
Wed Jul 18 20:13:17 PDT 2012


On Wed, Jul 18, 2012 at 10:37:14PM +0300, Arik Nemtsov wrote:
> On Tue, Jul 17, 2012 at 1:09 PM, Rajkumar Manoharan
> <rmanohar at qca.qualcomm.com> wrote:
> > Add optional "ht40" argument for p2p_group_add command to enable 40MHz
> > in 5GHz band. This could configure secondary channel, when 11n support
> > was enabled and if the HW supports 40MHz channel width.
> >
> > Signed-hostap: Rajkumar Manoharan <rmanohar at qca.qualcomm.com>
> > ---
> >
[...]
> > +int wpas_p2p_get_ht40_mode(struct wpa_supplicant *wpa_s,
> > +                          struct hostapd_hw_modes *mode, u8 channel)
> > +{
> > +       int op, ret;
> > +
> > +       for (op = 0; op_class[op].op_class; op++) {
> > +               struct p2p_oper_class_map *o = &op_class[op];
> > +               u8 ch;
> > +
> > +               for (ch = o->min_chan; ch <= o->max_chan; ch += o->inc) {
> > +                       if ((o->mode != HOSTAPD_MODE_IEEE80211A) ||
> 
> The HOSTAPD_MODE_IEEE80211A checks seem a bit redundant, but the
> patches look good overall.
>
As discussed earlier, 40MHz wont be supported for 2.4GHz band. Thats why
11G band op_class is ignored.

-Rajkumar



More information about the Hostap mailing list