linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rt2x00: Firmware loading vs. udev rules
@ 2015-09-29 16:38 Pascal Huerst
  2015-10-02  8:43 ` Stanislaw Gruszka
  0 siblings, 1 reply; 2+ messages in thread
From: Pascal Huerst @ 2015-09-29 16:38 UTC (permalink / raw)
  To: sgruszka; +Cc: linux-wireless

Hey Stanislaw, all,

on rt2x00 devices, firmware gets loaded in:

int rt2x00lib_start(struct rt2x00_dev *rt2x00dev)

which is called, when we start the interface by:

ifconfig wlan0 up

I need to lower tx power of the device and created a udev rule for that:

KERNEL=="wlan0", RUN+="/usr/sbin/iw dev wlan0 set txpower fixed 1800"

Obviously this does not work, since the firmware is not loaded, yet.

Is there a reason, why the firmware is loaded so late and not earlier in
probe or so?
Can this be done in any other proper way I don't know about?
I think the device should be ready for any operation, when the udev rule
triggers, right?

regards
Pascal

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-02  8:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-29 16:38 rt2x00: Firmware loading vs. udev rules Pascal Huerst
2015-10-02  8:43 ` Stanislaw Gruszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).