Search Linux Wireless

Re: PROPOSAL: cfg80211 antenna selection

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

 



On Wed, Nov 25, 2009 at 12:41 AM, Holger Schurig
<holgerschurig@xxxxxxxxx> wrote:
> Hi,
>
> I just wondered how we can do the antenna and diversity
> selection.
>
> Assumption: 32 antennas are enought
>
>
>
> My current idea is this:
>
>  struct cfg80211_ops {
> +int (*set_antennas)(struct wiphy *wiphy, struct net_device *dev,
> +                    u32 rx_antenna_mask, u32 tx_antenna_mask);
> +int (*get_antennas)(struct wiphy *wiphy, struct net_device *dev,
> +                    u32 *rx_antenna_mask, u32 tx_antenna_mask);
>  }
>
>  struct wiphy {
> +u8 max_antennas;
>  }

While at it might as well make this some configurable struct which the
drivers can add to the wiphy just as with the subbands. Also please
add the max antenna gain in mbi and start seeing if we can collect
this. On laptops with Atheros devices this would come from the EEPROM
so the driver should be able to set this upon initialization (probably
on hw init) and then cfg80211 can do more of the final computation to
the max eirp used.

Not sure how to get this from other cards. Anyone know how about on
b43, iwlwifi, rallink (I guess I can read the docs now :)) ?

Not sure if allowing for ops for chainmask setting would also be
helpeful here, that would need some review.

There is still one missing part to do a real final max eirp
computation on cfg80211 would be that of evaluation the CTL indexes if
there could be a common ground found amongst devices but last I tried
it seemed this was a pipe dream since other drivers do not expose any
of this, people working on certain drivers may not be aware of how
this is implemented on their devices yet or they may just use a
relatively conservative value for all edges.

Although a user should likely not be allowed to decrease the
configured eirp we *should* be able to allow user to increase it
through userspace as well to help with compliance to help adjust the
max eirp as well.

Finally, I theorize that if the antenna gain *was* indeed properly set
and this information was available even at some other level (say BIOS
and somehow we can extract that) it should technically then be
possible to put in the right code to technically allow swapping
wireless cards on laptops and perhaps then a solid argument can be
made against the silly BIOS locks put in place out there. The only
consideration which probably may not allow for this is calibration,
unless of course legislation would be OK with users doing calibration
themselves and if tools were available to the user.

  Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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