Bug 227770 - run(4) driver does not support modification of the txpower level using ifconfig(8)
Summary: run(4) driver does not support modification of the txpower level using ifconf...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: 12.0-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-wireless (Nobody)
URL:
Keywords: feature, needs-patch, performance
Depends on:
Blocks:
 
Reported: 2018-04-25 14:05 UTC by Craig Martin
Modified: 2018-12-15 06:12 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Martin 2018-04-25 14:05:37 UTC
The run(4) driver on a fully updated FreeBSD 11.1-RELEASE does not support modifying the txpower level using ifconfig(8) for the Ralink RT5370 USB wireless adapter (Device ID 148f:5370). E.g.:

# ifconfig wlan0 txpower 1
ifconfig: SIOCS80211: Operation not supported

Txpower can be changed on the exact same computer & usb adapter hardware running Debian Linux 8 Jessie with its "iwconfig txpower" command.
Comment 1 Craig Martin 2018-05-14 13:48:15 UTC
Issue is still occurring on a fresh install of FreeBSD 11.2-BETA1.
Comment 2 Craig Martin 2018-05-26 22:00:31 UTC
Issue is still occurring on a fresh install of FreeBSD 11.2-BETA2, 11.3-BETA3 and 12.0-CURRENT (20180521).
Comment 3 Hans Petter Selasky freebsd_committer freebsd_triage 2018-05-27 12:25:45 UTC
Hi,

The RUN driver is located here:
/usr/src/sys/dev/usb/wlan/if_run.c

Can you make a patch? Is this feature implemented for other systems Linux/*BSD ??

--HPS
Comment 4 Craig Martin 2018-05-27 17:43:56 UTC
(In reply to Hans Petter Selasky from comment #3)
Hi Hans, I would write a patch if I knew how to, but unfortunately I don't. I'm not a programmer, simply an advanced user.

Txpower can be changed on the exact same computer & usb-wifi adapter hardware running Debian Linux 8 Jessie with its "iwconfig txpower" command. It is using the rt2800usb driver on Debian:

https://github.com/torvalds/linux/blob/master/drivers/net/wireless/ralink/rt2x00/rt2800usb.c
Comment 5 Craig Martin 2018-06-28 05:19:02 UTC
No change with FreeBSD-12.0-CURRENT-amd64-20180618-r335317
Comment 6 Sean Bruno freebsd_committer freebsd_triage 2018-06-28 14:48:18 UTC
There is no code to do this in this driver as far as I can tell.  Someone would have to write it.  :-(
Comment 7 Craig Martin 2018-12-13 15:11:56 UTC
Should the "Component" field be set to "wireless" & the Assignee to "freebsd-wireless mailing list"?