I am not sure at all, hence my question how this to be done for routers with 
this capability on ath9k without these parameters being available.

On ath5k setting the gpio values and the tx and rx antenna values manually as 
the madwifi code would, seems to achieve the desired result; issue is that 
piece of code does not exist in mac80211 and as I said ar71xx cannot even 
differentiate between nano and nano loco and bullet.

Cheers

Hanno Schupp



On 15/11/2011, at 1:47 AM, Daniel Golle <[email protected]> wrote:

> Hi Hanno!
> I'm working on that for the ALL0258N, going to post a draft later today on
> ath9k-devel. Probably this will get us one step closer to support similar
> functionality on similar hardware as well. Are you sure setting the antenna
> switch is working through GPIO on ath9k hardware as well?
> 
> Regards
> 
> Daniel
> 
> On 11/13/2011 08:57 PM, Hanno Schupp wrote:
>> Previosly on madwifi using a special uci config parameter the polarisarion 
>> on Nanostation and Nano Loco plus polarisation on Loco could be set easily  
>> (refer to lines 138 to 196 in 
>> https://dev.openwrt.org/browser/trunk/package/madwifi/files/lib/wifi/madwifi.sh)
>> 
>> Trunk selects ath5k for atheros and ath9k for ar71xx by default in trunk, 
>> but the corresponding code does not include an antenna config parameter 
>> (refer to 
>> https://dev.openwrt.org/browser/trunk/package/mac80211/files/lib/wifi/mac80211.sh)
>> 
>> How then do we set polarization for ubiquiti device where available (Nano, 
>> Nano Loco, Nano M, Nano Loco M) and how do we target the external antenna 
>> where a connector is available (Nano, Nano M)?
>> 
>> The code extract from Madwifi shows the antenna uci config is just a front 
>> end to txantenna, rxantenna and diversity, which is easy enough to replicate 
>> in /etc/config/wireless, but what about the gpios that are set? As far as I 
>> read the mac80211.sh code this cannot be configured from there.
>> 
>> The situation is further complicated by the fact that the device recognition 
>> with mac80211.sh in not as fine grained as was with Madwifi; with the latter 
>> you knew whether you had a bullet, a pico, a nano or loco. With mac80211.sh 
>> it is all the same, they all are identified as Bullet or Bullet M (depending 
>> on architecture).
>> 
>> Any thoughts and hints welcome. I have a number of different Ubiqiti 
>> Picostations and Nanostations  and am happy to test any suggested patches.
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to