[Bug 1061924] Re: Need Antenna quirks for some platforms

Martin Pitt martin.pitt at ubuntu.com
Wed Oct 10 12:23:20 UTC 2012


Can you please forward this bug to the kernel developers, so that it can
get fixed properly in the driver?

udev is not the place to put driver bug workarounds in, but then again
neither are most other packages, so we can stick it into the udev
package for now. It just has no chance of getting accepted upstream.

But let's at least try all the overhead with it, i. e. calling
dmidecode, lspci, and two times grep. Could you try to replace the
upstart job with an /etc/udev/rules.d/80-platform-quirks.rules with this
contents:

  ACTION=="add", ATTR{vendor}=="0x168c", ATTR{device}=="0x002b",
ATTR{[dmi/id]product_name}=="Lenovo B[45]70e*",  RUN+="/sbin/iw phy0 set
antenna 1 1"


and let me know whether that works as well? Also, I don't like the hardcoded "phy0" here, that'll be wrong if you have more than one card installed. Can you please do "udevadm info --export-db > /tmp/udev.txt" and attach /tmp/udev.txt here? Thanks!

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to udev in Ubuntu.
https://bugs.launchpad.net/bugs/1061924

Title:
  Need Antenna quirks for some platforms

Status in “udev” package in Ubuntu:
  Triaged
Status in “udev” source package in Precise:
  New
Status in “udev” source package in Quantal:
  Triaged

Bug description:
  It has recently come to our attention that some laptops, in particular
  the lenovo b470 machines, have only one antenna. Unfortunately, they
  have decided to attach the auxilary antenna in the factory and not the
  main antenna. Udev sounds like the right place to quirk for this.

  Presently we're using an upstart job, the text of which is :

  # LenovoBx70eAtherosAntenna.conf
  #
  # Lenovo B[45]70e systems with Atheros AR9285 wifi only have one
  # antenna, but the ath9k driver defaults to using two antennas (Main
  # for Tx, Aux for Rx).  This job reconfigures the driver to use the
  # main antenna for both Tx and Rx before networking starts.

  description     "Fix antenna configuration for Atheros wifi on
  b470e/b570e"

  start on starting networking

  task

  script
          # only required for Lenovo B470e and B570e
          dmidecode --string system-version | grep --quiet --line-regex "Lenovo B[45]70e" || exit 0
          
          # only required for Atheros AR9285 devices
          lspci -n | grep --quiet --extended-regexp "^[0-9a-f:.]* 0280: 168c:002b" || exit 0

          # configure the device to use antenna 1 (Main) for both tx and rx
  	iw phy0 set antenna 1 1 
  end script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/1061924/+subscriptions




More information about the foundations-bugs mailing list