Help - Search - Members - Calendar
Full Version: Intel Wireless 2100, 2200bg, 2915bg, 3945abg, 4965agn
InsanelyMac Forum > OSx86 Project > Hardware and Drivers > LAN and Wireless
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61
Masterchief JYT
Hello to all in this tread, i don't have any hacker or driver builder skill, but i have THE hope that you can make 3945 card works on mac os, for that, you're in my prayers, god blessed you, and thanks for your time, patiance and work.

jalavoui
iwi3945 rel 877
remove the iosleep hack - don't seem very usefull
reboot if get kp

i think the outputpacket2 needs some fixes - can someone try to fix it?

wait...
i find the bug
will fix it and upload to svn


mbuf fixes
iwi3945 rel 878
iwi4965 rel 879
bond6
I think there is too much logging going on. My poos laptop cant keep up with it.

Is there a easy way to remove some log lines?
mlazy
Buld 878:

I'll post logs in a few mins. stuck in a loop:

Apr 28 17:24:22 Sony kernel[0]: error iwl3945: Error sending REPLY_TX_PWR_TABLE_CMD: iwl3945_enqueue_hcmd failed: -28
Apr 28 17:24:22 Sony kernel[0]: test_function @ /Users/super/Desktop/iwi3945/878/compatibility.cpp:6524
Apr 28 17:24:22 Sony kernel[0]: ieee80211_sta_scan_work @ /Users/super/Desktop/iwi3945/878/compatibility.cpp:5266
Apr 28 17:24:25 Sony kernel[0]: rf 203 dsp 127 rate code 0x0f
Apr 28 17:24:25 Sony kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 203 dsp 127 rate code 0x05
Apr 28 17:24:25 Sony kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 203 dsp 127 rate code 0x07
Apr 28 17:24:25 Sony kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 203 dsp 127 rate code 0x09
Apr 28 17:24:25 Sony kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 203 dsp 127 rate code 0x0b
Apr 28 17:24:25 Sony kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 203 dsp 127 rate code 0x01
Apr 28 17:24:25 Sony kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 203 dsp 127 rate code 0x03
Apr 28 17:24:25 Sony kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 139 dsp 116 rate code 0x0a
Apr 28 17:24:25 Sony kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 139 dsp 116 rate code 0x14
Apr 28 17:24:25 Sony kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 139 dsp 116 rate code 0x37
Apr 28 17:24:25 Sony kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 139 dsp 116 rate code 0x6e
Apr 28 17:24:25 Sony kernel[0]: error iwl3945: No space for Tx


Much quiter logs than normal, is this a good thing?

878 full logs:

Click to view attachment
Lofn
QUOTE(Hagar @ Apr 28 2008, 08:59 AM) *
devoid can you still edit that or do I need to open the topic?


Yep, I can still edit it. In fact, I'll be adding:

QUOTE(jalavoui @ Apr 28 2008, 12:35 PM) *
i think you should add this files (need to be updated with detailed linux log and use same version as iwi)
to your howto
this will explain howto check logs and compare against linux to see if iwi is loading ok or if a reboot or power on/off is needed
i change the svn xcodeproj to default use svn system
this will allow users to check what's changed in code and try some hacks/patches


In the post-script as soon within the next two hours or so. Gotta get some food :]

edit: Alright. I went over everything in the ZIP archive. It seems that some things are slightly different between your interface and mine, so I'll do everything from scratch. (Possibly different versions of XCode?) Also, the TIFF images are quite large :]

I'll start working on the next addition and transfer it over to the thread later. It's much easier working in a less-crowded text-area.

Done!
(Except for the part on how to compare against Linux.)
rusteswan
Firstly, thanks for all the work thats gone into this so far...

Just tested version 875 of the iwi3945 kext. This has been the first version that let me boot ok following the installation of the kext, no loops, no kernel panics - no response from scan with network selector though.

logs attached.

Hope this is of some use. Cheers, rustE.


EDIT: builds are moving fast... by the time got the latest and posted the results theres newer available... ;-)
jalavoui
the system.log as all info i need to check code
stop posting small and incomplete logs
zip it if the file is to big

Apr 28 17:24:25 Sony kernel[0]: error iwl3945: No space for Tx
this can mean that the driver is start working smile.gif
nop - it means the iwi3945 really need the timer hack
i'll reenable it and upload to svn


ok try this with iosleep enabled

iwi3945 rel 880
nordix
iwi3945 rel 878

No KP, errors like

pr 29 01:43:49 evgenijs-acpi kernel[0]: iwl3945: U iwl3945_mac_config_interface leave
Apr 29 01:43:49 evgenijs-acpi kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 115 dsp 107 rate code 0x0d
Apr 29 01:43:49 evgenijs-acpi kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 115 dsp 107 rate code 0x0f
Apr 29 01:43:49 evgenijs-acpi kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 115 dsp 107 rate code 0x05
Apr 29 01:43:49 evgenijs-acpi kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 115 dsp 107 rate code 0x07
Apr 29 01:43:49 evgenijs-acpi kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 115 dsp 107 rate code 0x09
Apr 29 01:43:49 evgenijs-acpi kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 115 dsp 107 rate code 0x0b
Apr 29 01:43:49 evgenijs-acpi kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 115 dsp 107 rate code 0x01
Apr 29 01:43:49 evgenijs-acpi kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 235 dsp 115 rate code 0x03
Apr 29 01:43:49 evgenijs-acpi kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 203 dsp 92 rate code 0x0a
Apr 29 01:43:49 evgenijs-acpi kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 203 dsp 92 rate code 0x14
Apr 29 01:43:49 evgenijs-acpi kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 203 dsp 92 rate code 0x37
Apr 29 01:43:49 evgenijs-acpi kernel[0]: iwl3945: U iwl3945_hw_reg_send_txpower ch 1:1 rf 203 dsp 92 rate code 0x6e
Apr 29 01:43:49 evgenijs-acpi kernel[0]: error iwl3945: No space for Tx
Apr 29 01:43:49 evgenijs-acpi kernel[0]: error iwl3945: Error sending REPLY_TX_PWR_TABLE_CMD: iwl3945_enqueue_hcmd failed: -28
Apr 29 01:43:49 evgenijs-acpi kernel[0]: test_function @ /Users/eugene/iwidarwin-read-only/iwi3945_new-osx10.5/compatibility.cpp:6524
Apr 29 01:43:49 evgenijs-acpi kernel[0]: ieee80211_sta_scan_work @ /Users/eugene/iwidarwin-read-only/iwi3945_new-osx10.5/compatibility.cpp:5266
Apr 29 01:43:50 evgenijs-acpi kernel[0]: test_function @ /Users/eugene/iwidarwin-read-only/iwi3945_new-osx10.5/compatibility.cpp:6524
Apr 29 01:43:50 evgenijs-acpi kernel[0]: iwl3945: U iwl3945_hw_reg_txpower_get_temperature Temperature: 102
Apr 29 01:43:50 evgenijs-acpi kernel[0]: iwl3945: U is_temp_calib_needed Getting cooler, delta -1,
Apr 29 01:43:50 evgenijs-acpi kernel[0]: iwl3945: U is_temp_calib_needed Timed thermal calib not needed
Apr 29 01:43:50 evgenijs-acpi kernel[0]: queue_te @ /Users/eugene/iwidarwin-read-only/iwi3945_new-osx10.5/compatibility.cpp:6535
Apr 29 01:43:50 evgenijs-acpi kernel[0]: timei 60000 timei2 1362466537

Temperature: 102? blink.gif It's Celsius or Fahrenheit?

austinsnyc
temp is in Fahrenheit....

Come J pull something special out today!! I have a feeling today is the day!
jalavoui
maybe all this code just burns iwi cards smile.gif

yep - if you get less bugs by disabling the blutooth
what do you get in system.log (with and without the iosleep hack)?
you can also renable this code and test:
atomic_xchg
there's also this
//iwl3945_send_power_mode -> if you enable and get no errors it's ok for me (don't work in iwi2200)
can someone help and test all this stuff
i can do this - but i'll need about 10 releases to get some conclusions
another thing you can test
//return rc;
this will renable the right way to scan and make the driver work
to discover this i think i'll have to post 200 releases
if i have the hardware i'll do it in 2 days
Miguel Madrid
J... the init problem, could be related to Bluetooth ?

Looking at the logs, most of them gets the first error at the REPLY_BT_CONFIG

As far as I know, there are different iwi cards, some with BT integrated, others not.

I have hacked the iwi3945_send_bt_config() ... and I didn't get the error, but it could be related to this (the value sent to the card)....

In the driver doc it says that the driver need to wait to sync with BT... and this call is just before the iwi3945_commit_rxon...

Does it make sense or I should go to bed right now wink.gif ??????

Regards
Miguel
adamisnt
iwi4965 rel 879

Seems to be stuck in endless looping that you see in the log file. No kps or huge errors as far as I can see.

Don't know if this means anything, but this is what happens after hitting the wireless on/off switch on my laptop (@ end of log)

[iApr 28 15:29:49 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config leave - RF kill
Apr 28 15:29:49 adam-notebook kernel[0]: IOPCCard debug: en1: failed to restore operationalchannel after scan
Apr 28 15:29:49 adam-notebook kernel[0]: __ieee80211_if_config @ /Users/Adam/Desktop/root/compatibility.cpp:6320
Apr 28 15:29:49 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config_interface enter: interface id 592900128
Apr 28 15:29:49 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config_interface bssid: 00:00:00:00:00:00
Apr 28 15:29:49 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config_interface leave
Apr 28 15:29:51 adam-notebook kernel[0]: sta_info_cleanup @ /Users/Adam/Desktop/root/compatibility.cpp:5421
Apr 28 15:29:52 adam-notebook kernel[0]: ction @ /Users/Adam/Desktop/root/compatibility.cpp:6541
Apr 28 15:29:52 adam-notebook kernel[0]: ieee80211_sta_scan_work @ /Users/Adam/Desktop/root/compatibility.cpp:5280
Apr 28 15:29:52 adam-notebook kernel[0]: ieee80211_scan_completed
Apr 28 15:29:52 adam-notebook kernel[0]: ieee80211_hw_config @ /Users/Adam/Desktop/root/compatibility.cpp:5186
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config enter to channel 1
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rxon_channel Staging channel set to 1 [3]
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Setting rates for 802.11g
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 0 (plcp 10)*
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 1 (plcp 20)*
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 2 (plcp 55)
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 3 (plcp 110)
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 4 (plcp 13)*
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 5 (plcp 15)
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 6 (plcp 5)*
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 7 (plcp 7)
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 8 (plcp 9)*
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 9 (plcp 11)
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 10 (plcp 1)
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 11 (plcp 3)
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Set active_rate = fff, active_rate_basic = 153
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config leave - RF kill
Apr 28 15:29:52 adam-notebook kernel[0]: IOPCCard debug: en1: failed to restore operationalchannel after scan
Apr 28 15:29:52 adam-notebook kernel[0]: __ieee80211_if_config @ /Users/Adam/Desktop/root/compatibility.cpp:6320
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config_interface enter: interface id 592900128
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config_interface bssid: 00:00:00:00:00:00
Apr 28 15:29:52 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config_interface leave[/i]

Please let me know if there is anything I should be looking for in these logs.
Thanks
jalavoui
removed anoying debug messages

iwi3945 rel 881
iwi4965 rel 882

if you like to learn howto read logs
get the linux log (some posts back)
compare to your system.log
the driver is not stable
sometimes you only get good logs by rebooting

QUOTE(jalavoui @ Apr 28 2008, 10:05 PM) *
maybe all this code just burns iwi cards smile.gif
yep - if you get less bugs by disabling the blutoothwhat do you get in system.log (with and without the iosleep hack)?
you can also renable this code and test:atomic_xchg
there's also this
//iwl3945_send_power_mode -> if you enable and get no errors it's ok for me (don't work in iwi2200)
can someone help and test all this stuff
i can do this - but i'll need about 10 releases to get some conclusions
another thing you can test
//return rc;
this will renable the right way to scan and make the driver work
to discover this i think i'll have to post 200 releases
if i have the hardware i'll do it in 2 days


i think this post is better here smile.gif
adamisnt
Somebody fix the search on this site, please. A search for 'linux' in this thread, and the entire LAN/Wireless category shows no results! Am I doing something incredibly wrong?

I would love to help/learn to help, but I can't go through 87 pages to find one post.

Edit: Found it. Here it is (4965 linux log)
mprewitt
Hi Guys,
I just compiled the 882 and it froze on boot. I have attached a screen shot and will add the logs as soon as I get it rebooted to teh desktop to pull them... but here is where it froze...

Any ideas on what might have caused it to hang here?
It was in the ucode f/w .. I am wondering if using a bogus mac address is causing a problem?

Mark

Click to view attachment
Click to view attachment
nordix
rel 881

enabled iwl3945_send_power_mode -> no KP, seems it tried to work on reboot

I'll compare logs from linux today (btw, I am just a lawyer, no more... smile.gif ) and see you later
adamisnt
iwi4965 rel 882

uncommented //return rc
per Jalavoui request

Promising? Or just a result of uncommenting that line?

Apr 28 17:07:27 adam-notebook kernel[0]: iwl4965: U iwl4965_rx_handle r = 82, i = 79, SCAN_RESULTS_NOTIFICATION, 0x83
Apr 28 17:07:27 adam-notebook kernel[0]: iwl4965: U iwl4965_rx_scan_results_notif Scan ch.res: 48 [802.11a] (TSF: 0x00000000:004BC69E) - 0 elapsed=112683 usec (110ms since last)
Apr 28 17:07:27 adam-notebook kernel[0]: iwl4965: U iwl4965_rx_handle r = 82, i = 80, STATISTICS_NOTIFICATION, 0x9d
Apr 28 17:07:27 adam-notebook kernel[0]: iwl4965: U iwl4965_hw_rx_statistics Statistics notification received (480 vs 484).
Apr 28 17:07:27 adam-notebook kernel[0]: iwl4965: U iwl4965_rx_handle r = 82, i = 81, SCAN_START_NOTIFICATION, 0x82
Apr 28 17:07:27 adam-notebook kernel[0]: iwl4965: U iwl4965_rx_scan_start_notif Scan start: 52 [802.11a] (TSF: 0x00000000:004BC802) - 1 (beacon timer 201377790)
Apr 28 17:07:28 adam-notebook kernel[0]: Adding rate index 6 (plcp 5)*
Apr 28 17:07:28 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 7 (plcp 7)
Apr 28 17:07:28 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 8 (plcp 9)*
Apr 28 17:07:28 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 9 (plcp 11)
Apr 28 17:07:28 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 10 (plcp 1)
Apr 28 17:07:28 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Adding rate index 11 (plcp 3)
Apr 28 17:07:28 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rate Set active_rate = fff, active_rate_basic = 153
Apr 28 17:07:28 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config No re-sending same RXON configuration.
Apr 28 17:07:28 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config leave
Apr 28 17:07:28 adam-notebook kernel[0]: __ieee80211_if_config @ /Users/Adam/Desktop/root/compatibility.cpp:6320
Apr 28 17:07:28 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config_interface enter: interface id 593035296
Apr 28 17:07:28 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config_interface bssid: 00:00:00:00:00:00
Apr 28 17:07:28 adam-notebook kernel[0]: iwl4965: U iwl4965_commit_rxon Sending RXON
Apr 28 17:07:28 adam-notebook kernel[0]: * without RXON_FILTER_ASSOC_MSK
Apr 28 17:07:28 adam-notebook kernel[0]: * channel = 1
Apr 28 17:07:28 adam-notebook kernel[0]: * bssid = 00:00:00:00:00:00
Apr 28 17:07:28 adam-notebook kernel[0]: iwl4965: U iwl4965_enqueue_hcmd Sending command REPLY_RXON (#10), seq: 0x04E5, 48 bytes at 229[5]:4
THROBiX
I just installed the stable version of iwidarwin 2915 (binary) on my XxX OSX86 10.4.10 SSE2 (+ 10.4.11 update), and my WLAN shows up as an ethernet device (which makes me unable of connecting to an access point), while opening the nsGUI results in Finder saying that the application is corrupted or incomplete... I tried the SVN version too (binary, non-source), but that didn't make any difference. Help?
Doctadre
My logs dont look much like the linux logs, but I do have some errors of interest:

Apr 28 22:01:40 doctadres-mac-pro kernel[0]: error iwl3945: U iwl3945_pci_probe pci_resource_base = 0x35172000
Apr 28 22:01:40 doctadres-mac-pro kernel[0]: IOPCCard info: iwl3945: Detected Intel PRO/Wireless 3945ABG Network Connection
Apr 28 22:01:40 doctadres-mac-pro kernel[0]: error iwl3945: U iwl3945_set_rxon_channel Staging channel set to 6 [3]
Apr 28 22:01:40 doctadres-mac-pro kernel[0]: init_waitqueue_head stubbed out!
Apr 28 22:01:40 doctadres-mac-pro kernel[0]: error iwl3945: U iwl3945_pci_probe MAC address: 00:19:d2:be:49:86
Gabik123
here are my logs for iwi4965 rev 882. Hopefully they are useful. Seems to be endlessly looping.btw computer restarted no problem, no KP after 20min
adamisnt
iwi4965 rel 882

return rc and atomic_xchg renenabled

Got this:

Apr 29 15:09:13 adam-notebook kernel[0]: IOPCCard info: iwl4965: Intel® Wireless WiFi Link 4965AGN driver for Linux, 1.2.23d
Apr 29 15:09:13 adam-notebook kernel[0]: IOPCCard info: iwl4965: Copyright© 2003-2007 Intel Corporation
Apr 29 15:09:13 adam-notebook kernel[0]: ieee80211_alloc_hw @ /Users/Adam/Desktop/root/compatibility.cpp:5610
Apr 29 15:09:13 adam-notebook kernel[0]: sta_info_init @ /Users/Adam/Desktop/root/compatibility.cpp:5442
Apr 29 15:09:13 adam-notebook kernel[0]: ieee80211_if_sdata_init @ /Users/Adam/Desktop/root/compatibility.cpp:2089
Apr 29 15:09:13 adam-notebook kernel[0]: ieee80211_alloc_hw [OK]
Apr 29 15:09:13 adam-notebook kernel[0]: iwl4965: U iwl4965_pci_probe pci_resource_len = 0x00000008
Apr 29 15:09:13 adam-notebook kernel[0]: iwl4965: U iwl4965_pci_probe pci_resource_base = 0x3420c000
Apr 29 15:09:13 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rxon_chain rx chain 280E
Apr 29 15:09:13 adam-notebook kernel[0]: IOPCCard info: iwl4965: Detected Intel Wireless WiFi Link 4965AGN
Apr 29 15:09:13 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rxon_channel Staging channel set to 6 [3]
Apr 29 15:09:13 adam-notebook kernel[0]: init_waitqueue_head stubbed out!
Apr 29 15:09:13 adam-notebook kernel[0]: IOPanelDevice: Machine Is Laptop!
Apr 29 15:09:13 adam-notebook kernel[0]: IOPanelDevice: Registered OK!
Apr 29 15:09:13 adam-notebook kernel[0]: iwl4965: U iwl4965_pci_probe MAC address: 00:1d:e0:54:19:fd

Does this mean anything?

Apr 29 15:09:22 adam-notebook kernel[0]: iwl4965: U iwl4965_rx_scan_results_notif Scan ch.res: 11 [802.11bg] (TSF: 0x00000000:00454456) - 3 elapsed=21117
usec (30ms since last)
Apr 29 15:09:22 adam-notebook kernel[0]: iwl4965: U iwl4965_rx_handle r = 255, i = 253, STATISTICS_NOTIFICATION, 0x9d
Apr 29 15:09:22 adam-notebook kernel[0]: iwl4965: U iwl4965_hw_rx_statistics Statistics notification received (480 vs 484).
Apr 29 15:09:22 adam-notebook kernel[0]: iwl4965: U iwl4965_rx_handle r = 255, i = 254, SCAN_COMPLETE_NOTIFICATION, 0x84
Apr 29 15:09:22 adam-notebook kernel[0]: iwl4965: U iwl4965_rx_scan_complete_notif Scan complete: 11 channels (TSF 0x004545D6:00000000) - 1
Apr 29 15:09:22 adam-notebook kernel[0]: iwl4965: U iwl4965_rx_scan_complete_notif Scan pass on 2.4GHz took 150ms

Hope this helps.
Doctadre
@adamsint. How did you get this?

Apr 29 15:09:13 adam-notebook kernel[0]: iwl4965: U iwl4965_pci_probe pci_resource_len = 0x00000008
Apr 29 15:09:13 adam-notebook kernel[0]: iwl4965: U iwl4965_pci_probe pci_resource_base = 0x3420c000
Apr 29 15:09:13 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rxon_chain rx chain 280E
Apr 29 15:09:13 adam-notebook kernel[0]: IOPCCard info: iwl4965: Detected Intel Wireless WiFi Link 4965AGN
Apr 29 15:09:13 adam-notebook kernel[0]: iwl4965: U iwl4965_set_rxon_channel Staging channel set to 6 [3]

These are the lines that make an error for me. What lines did you hack?
greyMD
QUOTE
iwl4965_set_rxon_channel Staging channel set to 6 [3]


isn`t this suppose to be good ?)
jalavoui
keep hacking smile.gif
some tips:
if you enable return rc the driver does the scan as expected in linux but
if you check it the scan must complete 2 bands (a, them bg or bg,a) before get a scan_complete
after this it should repeat the process
i hacked this using a timer - search for
ieee80211_sta_timer() -> the //hack is here but this is not very good because this functions is called later in ieee80211_scan_completed

setup_timer() - last line is a hack (add_timer) - this call IOPCCardAddTimer()
since the timer as no value the code will call
else timei=3000;
wich means this will loop every 3 seconds
maybe 3 seconds is not enought to complete scaning a and bg bands
try to increase this value

if you manage to get a iwl3945_rx_scan_complete_notif()
look at what follows
you can get a call to ieee80211_scan_completed or iwl3945_bg_request_scan (in case there are still bands to scan)

i'd like you do try to follow this code and find a way to make the scan loop after it finish scanning the 2 bands

the iwi4965 works the same way (the functions names start with iwl4965)

but before you do all this make shure you don't get timeouts sending commands or it will never work
pere
IWI3945 REL881
.
Did all the hacks,except ieee80211_sta_timer() cant find it on the iwi3945 code.
Used a timei=6000

First time reboot, no errors, did a scan A/BG, i enjoyed watching the log and couldnt pick the first lines cause console reload... XD
Tried to boot again to pick the reboot log, then no longer booted, got frozen.
Booted on safe mode, manual load, no errors on load (i think), log attached A/BG scan notifications.
Should give to 3945 a higher timei?.


EDIT: Very very high timei (24000)
No errors on boot.
GOT SCAN_COMPLETE_NOTIFICATION smile.gif
But i cant see it completes the bg band....
Log and kext attached.

Apr 29 16:42:21 Pere kernel[0]: iwl3945: U iwl3945_rx_handle r = 59, i = 58, SCAN_COMPLETE_NOTIFICATION, 0x84\
Apr 29 16:42:21 Pere kernel[0]: iwl3945: U iwl3945_rx_scan_complete_notif Scan complete: 13 channels (TSF 0x01525FE2:00000000) - 1\
Apr 29 16:42:21 Pere kernel[0]: iwl3945: U iwl3945_rx_scan_complete_notif Scan pass on 2.4GHz took 320ms\
mlazy
881 logs:

1. Clean build no hacks:

Click to view attachment

2. Atomic hack=immediate freeze after kextload


3. return_rc hack:

Click to view attachment

4. Send power mode hack=immediate freeze:

Click to view attachment

I'm gonna play with the atomic hack now..

BTW, I get BT erors sometimes, but don't have bluetooth at all.....is it something else?
jalavoui
QUOTE(pere @ Apr 29 2008, 01:16 PM) *
EDIT: Very very high timei (24000)
No errors on boot.
GOT SCAN_COMPLETE_NOTIFICATION smile.gif
But i cant see it completes the bg band....
Log and kext attached.


this mean you have to wait 24 seconds for each scan!
you need to find a better way - or maybe not
the problem sill exists with the scan loop
this is caused by ieee80211_sta_timer hack
this hack make the driver scan again but it also prevents scan to complete
you need to make the driver call this and complete the iee station_work code
pere
QUOTE(jalavoui @ Apr 29 2008, 03:00 PM) *
this mean you have to wait 24 seconds for each scan!
you need to find a better way - or maybe not
the problem sill exists with the scan loop
this is caused by ieee80211_sta_timer hack
this hack make the driver scan again but it also prevents scan to complete
you need to make the driver call this and complete the iee station_work code


Javalui, i have been looking for
ieee80211_sta_timer()

But i cant find it on the code...
Even i look for any "hack" or "//hack", cant find it... sad.gif

EDIT: Or is one of this...
kazzi
He means the commented hack is there. You need to search for the call of ieee80211_sta_timer()
adamisnt
From looking at the linux logs for 4965, it seems the scan doesn't take more than 2 seconds for each frequency.

Apr 27 13:16:27 jpw-vaio kernel: iwl4965: I iwl4965_rx_scan_complete_notif Scan pass on 2.4GHz took 348ms
Apr 27 13:16:29 jpw-vaio kernel: iwl4965: I iwl4965_rx_scan_complete_notif Scan pass on 5.2GHz took 1720ms
pere
QUOTE(kazzi @ Apr 29 2008, 04:07 PM) *
He means the commented hack is there. You need to search for the call of ieee80211_sta_timer()



Yep, you are right. smile.gif

Commented this line:
//set_bit(IEEE80211_STA_REQ_SCAN, &ifsta->request);//hack

Had to reboot several times to get one log without errors, here it is.
mlazy
QUOTE(pere @ Apr 29 2008, 12:36 PM) *
Yep, you are right. smile.gif

Commented this line:
//set_bit(IEEE80211_STA_REQ_SCAN, &ifsta->request);//hack

Had to reboot several times to get one log without errors, here it is.



Post your kext too please. I'd love to test it as well. Do you have all of Jalavoui's hacks enabled at thtis point?
pere
QUOTE(mlazy @ Apr 29 2008, 04:44 PM) *
Post your kext too please. I'd love to test it as well. Do you have all of Jalavoui's hacks enabled at thtis point?


Yep.
Take it. (will lower the timei from 24000 to 12000 in this kext, attached the log from previous kext).

Check if you can complete the A/BG bands, if dont, i will raise the timei again... If you cant see the A/BG bands, then try my previous kext.
And remember, im not sure my kext is working well with all the hacks, Javalui has to check it.

IWI 3954 Rel 881
EDIT.
Hacks:
uncommented //return rc
changed else timei=3000;>else timei=12000
enabled atomic_xchg
commented //set_bit(IEEE80211_STA_REQ_SCAN, &ifsta->request);//hack
jalavoui
QUOTE(adamsint @ Apr 29 2008, 04:31 PM) *
From looking at the linux logs for 4965, it seems the scan doesn't take more than 2 seconds for each frequency.

Apr 27 13:16:27 jpw-vaio kernel: iwl4965: I iwl4965_rx_scan_complete_notif Scan pass on 2.4GHz took 348ms
Apr 27 13:16:29 jpw-vaio kernel: iwl4965: I iwl4965_rx_scan_complete_notif Scan pass on 5.2GHz took 1720ms


yes - this can be important - same thing for 3945
can someone try to make this work within this timer
also need cxxdev to post another linux log for 4965 with more data (scans, association, dissasociate,etc)
and it will be nice someone build the linux version for 3945 and post the log so we can match iwi3945 against the same linux version

pere,
do you get any scan call? - i can't see it in your logs
since you're not using this hack
//set_bit(IEEE80211_STA_REQ_SCAN, &ifsta->request);//hack
you need to comment add_timer(timer); in setup_timer -> put //add_timer(timer);//hack
and in IOPCCardAddTimer
make else timei=0; you can do this because the timer is enabled in code when you use mod_timer(&ifsta->timer this is done after associating,etc

the ieee80211_sta_timer is called when you get a iwl3945_rx_scan_complete_notif -> ieee80211_scan_completed ->add iolog debug to see if this is called
if the driver don't start a scan you can force it to make one scan loop in check_firstup()
in theory the scan loop should be called when you start calling it in check_firstup
someting is wrong i hope you can follow the code and figure it out
this is the same for iwi4965
ok - finish editing smile.gif
pere
QUOTE(jalavoui @ Apr 29 2008, 05:19 PM) *
yes - this can be important - same thing for 3945
can someone try to make this work within this timer
also need cxxdev to post another linux log for 4965 with more data (scans, association, dissasociate,etc)
and it will be nice someone build the linux version for 3945 and post the log so we can match iwi3945 against the same linux version

pere,
do you get any scan call? - i can't see it in your logs


Nop.
I have recheck console right now...


@ JAVALUI : you need to comment add_timer(timer); in setup_timer -> put //add_timer(timer);//hack
and in IOPCCardAddTimer
make else timei=0; you can do this because the timer is enabled in code when you use mod_timer(&ifsta->timer this is done after associating,etc

the ieee80211_sta_timer is called when you get a iwl3945_rx_scan_complete_notif -> ieee80211_scan_completed ->add iolog debug to see if this is called
if the driver don't start a scan you can force it to make one scan loop in check_firstup()
in theory the scan loop should be called when you start calling it in check_firstup

Done.
EDIT:
Reboot log, no errors, no scan calls. sad.gif
Please Javalui, im not coder, if you need me to add for example the iolog, write me the code and tell me where to put it, and i will do it happily. smile.gif
jalavoui
maybe doing this can make the driver more stable:
//iwl3945_send_bt_config(priv);
if this work you might remove the iosleep(2000) hack
adamisnt
Jalavoui,

I assume that you have seen this already. If not...

Linux 4965 development page.

I am going to dive into this documentation with the hope I can contribute.

Edit: Nevermind - waaay over my head.
Miguel Madrid
QUOTE(jalavoui @ Apr 29 2008, 06:07 PM) *
maybe doing this can make the driver more stable:
//iwl3945_send_bt_config(priv);
if this work you might remove the iosleep(2000) hack


Jalavoui,

I did test yesterday to disable the BT config call (http://forum.insanelymac.com/index.php?showtopic=84072&st=1700#)

The BT error doesn't come up... but as I said, there could be some cards with BT and others without (this is why there are several Device ID).

Different cards could mean different startup secuence... with less or more errors...

In the mean time, i think it's a good idea to keep it hacked.... and see what happend...

On the 4965 I don't see the BT error, altough I have a dual Wifi/BT card...

I'm currently reinstaling OSX as I had a few problems with a KP trying to hack the REQ_Scan.... wink.gif
jalavoui
ok -i'll add the hacks for testing for both cards
wait...
redfez
no card found sad.gif (3945)
Cxddev
QUOTE(jalavoui @ Apr 29 2008, 06:19 PM) *
yes - this can be important - same thing for 3945
can someone try to make this work within this timer
also need cxxdev to post another linux log for 4965 with more data (scans, association, dissasociate,etc)
and it will be nice someone build the linux version for 3945 and post the log so we can match iwi3945 against the same linux version


I hear you... are these any help?
grrantry
Hello I get an error in console

Apr 29 05:29:50 grrantrys-macintosh sudo[197]: grrantry : TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/usr/bin/su
Apr 29 05:29:59 grrantrys-macintosh kernel[0]: Resetting IOCatalogue.
Apr 29 05:29:59 grrantrys-macintosh kextd[10]: 0 cached, 419 uncached personalities to catalog
Apr 29 05:30:00 grrantrys-macintosh kextd[10]: cannot resolve dependencies for kernel extension /System/Library/Extensions/

What it mean?
jalavoui
scan loop test
first scan call is in check_firstup
the loop only works if you get a scan_complete notification

iwi3945 rel 883
iwi4965 rel 884


Cxddev,
i can't understand in your log how the scan loops works while not associated
can you make it scan and not associate?
can you post a long system.log with all features?

Ruud
post the full log - this one is very short
Ruud
Log for iwi4965 rel 884

hope it will help, very nice first log lines i think.

Update.. this was all there came.. after this it was very slow show more log lines... I hope i can create another log this evening, but Im working late today so i dont know if i can try it again today..
pere
iwi3945 rel 883
When booting the nice way, gets frozen, when loading manual, get frozen , on safe boot manual load too. sad.gif No logs.

EDIT:
Erased the kext, rebuild it, and now no problems at boot.... blink.gif Log attached.
jalavoui
if the driver completes the scan and tries to associate you'll get a kp
need to see it

ok - try this

iwi3945 rel 885
iwi4965 rel 886
adamisnt
iwi4965 rel 884

No KP
seems to scan, then very little activity in system.log
no scan_complete_notif

will try a couple more reboots to see if I can get a different result
greyMD
cross my fingers for your success....
adamisnt
Here is another one.

I notice some stuff I think I usually don't see in the logs.

Such as:

Apr 29 13:46:38 adam-notebook kernel[0]: set_fat_chan_info FAT Ch. 40 [5.2GHz] WIDE (0x21 13dBm): Ad-Hoc not supported

and:
Apr 29 13:48:14 adam-notebook kernel[0]: error iwl4965: No space for Tx


probably means nothing - will keep trying
Gabik123
im in class right now, ill test 4965 in a few hours when im out.

Jalavoui, how much would you need to get a laptop with one of these cards? I'm sure many of us would donate if we knew how much we needed to donate to achieve a result.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.