Skip to contentSkip to conversation

Possibility of porting ath9k to opensolaris.

ath9k-devel mumu 3 participants 6 messages Dec 14, 2008 – Feb 5, 2009

lore
Share & tools
lore

mumu

author
#0 lore raw

Greetings all,

Thanks to you guys for developing this driver!.

I am using a MacBookPro with opensolaris installed, but my AR5418 can not work under 11n mode, so i want to port this linux driver to opensolaris.

Before i start my work, i have two questions which need your help.

1. I need a stable version as reference code, but i find that the driver code keeps changing everyday, is there any stable version(with 11n support) exists or any plan to deliver a stable one in near future?

2. I found that when using flash, there is a start address "AR5416_EEPROM_START_ADDR" used in ioremap() for flash mapping, i failed to figure out why use fixed address here, are you sure this address is available or reasonable in other platform?

Any help are appreciated.

Thanks a lot.

Br,

Lin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20081214/d68f446e/attachment.htm

#1 lore raw
Quoted 1 line · mumu

1. I need a stable version as reference code, but i find that the driver code keeps changing everyday, is there any stable version(with 11n support) exists or any plan to deliver a stable one in near future?

The driver is under development, it has a few more rounds to go before it can be called 'stable'.

Quoted 1 line

2. I found that when using flash, there is a start address "AR5416_EEPROM_START_ADDR" used in ioremap() for flash mapping, i failed to figure out why use fixed address here, are you sure this address is available or reasonable in other platform?

That address is used only in AP boards, it shouldn't matter for a STA driver.

Sujith

author
#2 lore raw

Greetings all,

I am porting ath9k to opensolaris, now rx function is ok and i can get scan results via received beacon frames; but tx function still doesn't work, when i filtered beacon frames in rx function and run scan command, i got tx interrupt and ds->ds_txstat.ts_status == 0, but i got no scan results, i also used sniffer tools but captured nothing.

I have no idea of what to do now, anyone would give me some clues or point out the possible causes, sorry for lacking of useful debug information because my OS crashed.

I use compat-wireless-2008-11-30 as reference version.

Any help are appreciated.

Thanks a lot!

Br,

mumu

2008/12/15 Sujith <[email protected]>

Quoted 10 lines
Quoted 1 line · mumu

1. I need a stable version as reference code, but i find that the driver

code keeps changing everyday, is there any stable version(with 11n support) exists or any plan to deliver a stable one in near future?

The driver is under development, it has a few more rounds to go before it can be
called 'stable'.

Quoted 1 line

2. I found that when using flash, there is a start address

Quoted 9 lines

"AR5416_EEPROM_START_ADDR" used in ioremap() for flash mapping, i failed to figure out why use fixed address here, are you sure this address is available or reasonable in other platform?

That address is used only in AP boards, it shouldn't matter for a STA driver.

Sujith

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090120/eaed1979/attachment.htm

#3 lore raw
Quoted 8 lines · mumu

Greetings all,

I am porting ath9k to opensolaris, now rx function is ok and i can get scan results via received beacon frames; but tx function still doesn't work, when i filtered beacon frames in rx function and run scan command, i got tx interrupt and ds->ds_txstat.ts_status == 0, but i got no scan results, i also used sniffer tools but captured nothing.

Nice. :)

Quoted 5 lines

I have no idea of what to do now, anyone would give me some clues or point out the possible causes, sorry for lacking of useful debug information because my OS crashed.

I use compat-wireless-2008-11-30 as reference version.

If a TX interrupt is being generated, then analyzing whether it was TXOK or else TXERR/TXEOL/TXDESC would provide some clue.

Otherwise if GTT (Global Transmit Timeout) interrupts are being generated, it would indicate that the TX descriptors are not being setup properly.

HTH.

Sujith

Signature · 1 line
http://sujith-m.blogspot.com
author
#4 lore raw

2009/1/20 Sujith <[email protected]>

Quoted 16 lines
Quoted 3 lines · mumu

Greetings all,

I am porting ath9k to opensolaris, now rx function is ok and i can get

scan

Quoted 1 line

results via received beacon frames; but tx function still doesn't work,

when

Quoted 4 lines

i filtered beacon frames in rx function and run scan command, i got tx interrupt and ds->ds_txstat.ts_status == 0, but i got no scan results, i also used sniffer tools but captured nothing.

Nice. :)

Quoted 1 line

I have no idea of what to do now, anyone would give me some clues or

point

Quoted 9 lines
Quoted 4 lines

out the possible causes, sorry for lacking of useful debug information because my OS crashed.

I use compat-wireless-2008-11-30 as reference version.

If a TX interrupt is being generated, then analyzing whether it was TXOK or else
TXERR/TXEOL/TXDESC would provide some clue.

TX status is OK.

Quoted 2 lines

Otherwise if GTT (Global Transmit Timeout) interrupts are being generated,

Do you means ATH9K_INT_GLOBAL?

Quoted 2 lines

it would indicate that the TX descriptors are not being setup properly.

Thanks a lot for your help, i guess descriptors are not setup properly,
but i have no enough information to setup it properly because of lacking of information from MAC80.211, i'll check it later.

Thanks again!

Br,

mumu

Quoted 8 lines

HTH.

Sujith
--
http://sujith-m.blogspot.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090120/1c04bfb4/attachment.htm

author
#5 lore raw
In reply to Sujith

Greetings all,
I am still working on TX function without any progress :-(

There is no GTT interrupt generated now, but i failed to capture a TX frame.

I guess i got something wrong in TX descriptors setting up, for example, ath9k_hw_set11n_ratescenario(), is it necessary in non-11n mode? In opensolaris, i have no enough information to initialize ath9k_11n_rate_series, which is necessary for function ath9k_hw_set11n_ratescenario(). I think rate algorithm implemented in ath9k are base on MAC80211, i am wondering how to implement in opensolaris.

The attachemnt is the log file when i run scan command, hope it will help to debug tx function.

Thanks a lot!

Br,

mumu

2009/1/20 Sujith <[email protected]>

Quoted 25 lines
Quoted 3 lines · mumu

Greetings all,

I am porting ath9k to opensolaris, now rx function is ok and i can get

scan

Quoted 1 line

results via received beacon frames; but tx function still doesn't work,

when

Quoted 4 lines

i filtered beacon frames in rx function and run scan command, i got tx interrupt and ds->ds_txstat.ts_status == 0, but i got no scan results, i also used sniffer tools but captured nothing.

Nice. :)

Quoted 1 line

I have no idea of what to do now, anyone would give me some clues or

point

Quoted 4 lines

out the possible causes, sorry for lacking of useful debug information because my OS crashed.

I use compat-wireless-2008-11-30 as reference version.

If a TX interrupt is being generated, then analyzing whether it was TXOK or else
TXERR/TXEOL/TXDESC would provide some clue.

Quoted 9 lines

Otherwise if GTT (Global Transmit Timeout) interrupts are being generated, it would indicate that the TX descriptors are not being setup properly.

HTH.

Sujith
--
http://sujith-m.blogspot.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090205/4f13b3b1/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scan.log
Type: application/octet-stream
Size: 13802 bytes
Desc: not available
Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090205/4f13b3b1/attachment.obj