On 23/01/2015 18:27, Cezary Jackiewicz wrote:
> Dnia 2015-01-22, o godz. 14:41:33
> John Crispin <[email protected]> napisaƂ(a):
> 
>> can you explain your wifi setup so that we can figure out how to
>> properly fix this ?
> 
> config wifi-device 'radio1'
>       option type 'mac80211'
>       option hwmode '11a'
>       option path 'pci0000:00/0000:00:00.0'
>       option disabled '0'
>       option htmode 'HT20'
>       option channel '48'
> 
> config wifi-iface
>       option device 'radio1'
>       option encryption 'psk2'
>       option key '1234567890'
>       option network 'wlan'
>       option mode 'adhoc'
>       option ssid 'link-5g'
> 
> Without patch I've got
> 
> root@OpenWrt:~# cat /var/run/wpa_supplicant-wlan1.conf 
> ap_scan=2
> network={
>       scan_ssid=0
>       ssid="link-5g"
>       key_mgmt=WPA-PSK
>       mode=1
>       fixed_freq=1
>       frequency=5240
>       mode=1
>       psk="1234567890"
>       proto=RSN
> }
> 
> iw wlan1 info shows only 20 MHz (no HT) and iw wlan1 station dump - tx/rx 
> 54MBit
> 
> With patch:
> 
> root@OpenWrt:~# cat /var/run/wpa_supplicant-wlan1.conf 
> ap_scan=2
> network={
>       scan_ssid=0
>       ssid="link-5g"
>       key_mgmt=WPA-PSK
>       mode=1
>       fixed_freq=1
>       frequency=5240
>       mode=1
>       psk="1234567890"
>       proto=RSN
>       htmode=HT20
> }
> 
> iw wlan1 info shows channel 48 (5240 MHz), width: 20 MHz, center1: 5240 MHz 
> (width: 40 MHz with channel 36 and HT40+); iw wlan1 station dump shows
> bitrate
> 
> rx bitrate:   115.6 MBit/s MCS 13 short GI
> tx bitrate:   57.8 MBit/s MCS 5 short GI
> rx bitrate:   86.7 MBit/s MCS 12 short GI
> 
> etc.
> 

ok, so it is adhoc mode. in this case the feature does make sense. the
problem is that the values provided by netifd-wireless.sh cannot
directly be translated to wpa_supplicant values. additionally yor patch
should ensure that values are only applied for adhoc networks. i will
put this on my list and investigate a bit further.
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to