This change was a definite improvementfor legacy atheros; as one can see below the hardware is now properly detected by iwinfo.
What is not so nice is the txpowerlist. As I had reported last year, the system reports 27dBm regardless which hardware is used. Fon, Ubiquiti, Engenius on atheros platform - as soon as the ath5k driver is used everything shows with 27dBm (see some Ubiquiti devices below) Add to that a 10dBm txpower offset you get a 37dBm txpower range (Manostation2). As I no longer use madwifi I just adjusted the list in https://dev.openwrt.org/browser/trunk/package/iwinfo/src/iwinfo_lib.c with negative and positive values for the devices I support to create a valid txpowerlist . Not nice but hey, it works. I can also confirm the following devices which would be nice to add to the list https://dev.openwrt.org/browser/trunk/package/iwinfo/src/iwinfo_lib.c: Ubiquiti Picostation 2: 168C:0013 0777:C302 - max 20dBm Ubiquiti Picostation 2 HP: 168C:0013 0777:C3A2 - max 30dBm Interestingly the system works different on ar71xx. The M2 devices like Nano, Bullet, and Pico have a maximum power of 28dBm, the M5 a maximum of 28 dBm, the Loco a maximum of 23dBm. Still, the list comes up with 27dBm as on legacy ahteros, but this time the offset works properly, as the maximum shown value is 23dBm (which must consider a 5dBm offset lifting it to the correct 28dBm) . By the way, the susbsystem Id of the Picostation M2 is 0xe302, which would also be nice to add to the list in https://dev.openwrt.org/browser/trunk/package/iwinfo/src/iwinfo_lib.c Picostation M2 root@Router8111215:~# iwinfo wlan0 txpowerlist 0 dBm ( 1 mW) 1 dBm ( 1 mW) 2 dBm ( 1 mW) 3 dBm ( 1 mW) 4 dBm ( 2 mW) 5 dBm ( 3 mW) 6 dBm ( 3 mW) 7 dBm ( 5 mW) 8 dBm ( 6 mW) 9 dBm ( 7 mW) 10 dBm ( 10 mW) 11 dBm ( 12 mW) 12 dBm ( 15 mW) 13 dBm ( 19 mW) 14 dBm ( 25 mW) 15 dBm ( 31 mW) 16 dBm ( 39 mW) 17 dBm ( 50 mW) 18 dBm ( 63 mW) 19 dBm ( 79 mW) 20 dBm ( 100 mW) 21 dBm ( 125 mW) 22 dBm ( 158 mW) * 23 dBm ( 199 mW) 24 dBm ( 251 mW) 25 dBm ( 316 mW) 26 dBm ( 398 mW) 27 dBm ( 501 mW) root@Router8111215:~# iwinfo wlan0 info wlan0 ESSID: "Chillifire Hotspot" Access Point: F8:D1:11:2F:15:AE Mode: Master Channel: 3 (2.422 GHz) Tx-Power: 23 dBm Link Quality: 0/70 Signal: unknown Noise: -95 dBm Bit Rate: unknown Encryption: none Type: nl80211 HW Mode(s): 802.11bgn Hardware: unknown [Generic MAC80211] TX power offset: unknown Frequency offset: unknown Supports VAPs: yes Nanostation2: root@Router0015610:~# iwinfo wlan0 txpowerlist 10 dBm ( 10 mW) 11 dBm ( 12 mW) 12 dBm ( 15 mW) 13 dBm ( 19 mW) 14 dBm ( 25 mW) 15 dBm ( 31 mW) 16 dBm ( 39 mW) 17 dBm ( 50 mW) 18 dBm ( 63 mW) 19 dBm ( 79 mW) 20 dBm ( 100 mW) 21 dBm ( 125 mW) 22 dBm ( 158 mW) 23 dBm ( 199 mW) 24 dBm ( 251 mW) 25 dBm ( 316 mW) 26 dBm ( 398 mW) 27 dBm ( 501 mW) * 28 dBm ( 630 mW) 29 dBm ( 794 mW) 30 dBm (1000 mW) 31 dBm (1258 mW) 32 dBm (1584 mW) 33 dBm (1995 mW) 34 dBm (2511 mW) 35 dBm (3162 mW) 36 dBm (3981 mW) 37 dBm (5011 mW) root@Router0015610:~# iwinfo wlan0 info wlan0 ESSID: "Chillifire Hotspot" Access Point: 00:15:6D:DA:E1:A0 Mode: Master Channel: 3 (2.422 GHz) Tx-Power: 28 dBm Link Quality: 0/70 Signal: unknown Noise: -110 dBm Bit Rate: unknown Encryption: none Type: nl80211 HW Mode(s): 802.11bg Hardware: 168C:0013 0777:C002 [Ubiquiti NanoStation2] TX power offset: 10 dB Frequency offset: none Supports VAPs: yes
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
