Intel Wireless 2100, 2200bg, 2915bg, 3945abg, 4965agn, IWIDarwin drivers for mac os x 10.4 and 10.5 *under development* |
![]() |
Intel Wireless 2100, 2200bg, 2915bg, 3945abg, 4965agn, IWIDarwin drivers for mac os x 10.4 and 10.5 *under development* |
|
nordix
InsanelyMac Geek
|
![]() |
May 2 2008, 07:48 PM Post #1861
|
![]() ![]() ![]()
|
iwi3945 rel 926 -> no KP, same results as from Pere's log
Attached File(s)
|
|
jalavoui
InsanelyMac Legend
|
![]() |
May 2 2008, 08:01 PM Post #1862
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
i hope pere can fix the cmd timeouts
in iwi4965 there's no problem with that the driver scans (maybe with wrong bands) the problem with association starts with ieee80211_rx_mgmt_beacon() this can be the gateway to start associating to a network i'll try to hack the driver to associate when it gets a call to ieee80211_rx_mgmt_probe_resp() the goal is to do this and stop the scan loop let's try it... iwi3945 rel 928 - only works if you don't get cmd timeouts iwi4965 rel 929 |
|
adamisnt
InsanelyMac Protégé
|
![]() |
May 2 2008, 08:17 PM Post #1863
|
|
iwi4965 rel 927
Rebooted my machine again, got some different results. Wanted to note the differences. This time around it is scanning a/b/g networks as opposed to just 802.11a. Didn't get this last time: May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_read_ucode Got firmware 'iwlwifi-4965-1.ucode' file (2d5a4d bytes) from disk May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_read_ucode f/w package hdr ucode version = 0x42c0114 May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_read_ucode f/w package hdr runtime inst size = 92720 May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_read_ucode f/w package hdr runtime data size = 40960 May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_read_ucode f/w package hdr init inst size = 10312 May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_read_ucode f/w package hdr init data size = 40960 May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_read_ucode f/w package hdr boot inst size = 788 May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_read_ucode Copying (but not loading) uCode instr len 16A30d May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_read_ucode uCode instr buf vaddr = 0x0x345ef000, paddr = 0x05731000 May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_read_ucode Copying (but not loading) uCode data len A000dVGA: family specific matching fails May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_read_ucode Copying (but not loading) init instr len 2848d May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_read_ucode Copying (but not loading) init data len A000d May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_read_ucode Copying (but not loading) boot instr len 314d May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_hw_nic_init HW Revision ID = 0x61 May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_hw_card_show_info 4965ABGN HW Version 0.0.209 May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_hw_card_show_info 4965ABGN PBA Number 5593006 May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_hw_nic_init SW RF KILL supported in EEPROM. May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_hw_nic_init HW RF KILL supported in EEPROM. May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_load_bsm Begin load bsm May 2 13:00:19 adam-notebook kernel[0]: iwl4965: U iwl4965_verify_bsm Begin verify bsm Also noticed this. It appears in my other r927 log as well. May 2 13:00:29 adam-notebook kernel[0]: ieee80211_sta_rx_scan @ /Users/Adam/Desktop/root/compatibility.cpp:3465 May 2 13:00:29 adam-notebook kernel[0]: ieee80211_rx_mgmt_beacon @ /Users/Adam/Desktop/root/compatibility.cpp:3418 May 2 13:00:29 adam-notebook kernel[0]: ieee80211_rx_bss_info @ /Users/Adam/Desktop/root/compatibility.cpp:3061 May 2 13:00:29 adam-notebook kernel[0]: IOPCCard debug: en1: RX Beacon from 00:18:71:5f:13:f6 to ff:ff:ff:ff:ff:ff
Attached File(s)
|
|
adamisnt
InsanelyMac Protégé
|
![]() |
May 2 2008, 09:07 PM Post #1864
|
|
iwi4965 rel 929
Wow. Lots of new stuff here. Looks very promising. May 2 14:01:19 adam-notebook kernel[0]: iwl4965: U iwl4965_tx_queue_set_status Activate AC Queue 0 on AC 3 May 2 14:01:19 adam-notebook kernel[0]: iwl4965: U iwl4965_tx_queue_set_status Activate AC Queue 1 on AC 2 May 2 14:01:19 adam-notebook kernel[0]: iwl4965: U iwl4965_tx_queue_set_status Activate AC Queue 2 on AC 1 etc May 2 14:01:19 adam-notebook kernel[0]: iwl4965: U iwl4965_init_channel_map Initializing regulatory info from EEPROM May 2 14:01:19 adam-notebook kernel[0]: iwl4965: U iwl4965_init_channel_map Parsing data for 56 channels. May 2 14:01:19 adam-notebook kernel[0]: iwl4965: U iwl4965_init_channel_map Ch. 1 [2.4GHz] IBSS ACTIVE WIDE (0x2b 14dBm): Ad-Hoc supported May 2 14:01:19 adam-notebook kernel[0]: iwl4965: U iwl4965_init_channel_map Ch. 2 [2.4GHz] IBSS ACTIVE WIDE (0x2b 14dBm): Ad-Hoc supported etc May 2 14:01:19 adam-notebook kernel[0]: iwl4965: U iwl4965_init_channel_map Ch. 3 [2.4GHz] IBSS ACTIVE WIDE (0x2b 14dBm): Ad-Hoc supported SCAN_COMPLETE for 2.4Ghz AND 5.2 Ghz May 2 14:01:55 adam-notebook kernel[0]: iwl4965: U iwl4965_rx_scan_complete_notif Scan complete: 13 channels (TSF 0x0035DB4D:00000000) - 1 May 2 14:01:55 adam-notebook kernel[0]: iwl4965: U iwl4965_rx_scan_complete_notif Scan pass on 5.2GHz took 1470ms May 2 14:01:55 adam-notebook kernel[0]: iwl4965: U iwl4965_rx_scan_complete_notif Setting scan to off May 2 14:01:55 adam-notebook kernel[0]: iwl4965: U iwl4965_rx_scan_complete_notif Scan took 1530ms May 2 14:01:55 adam-notebook kernel[0]: iwl4965: U iwl4965_bg_scan_completed SCAN complete scan May 2 14:01:55 adam-notebook kernel[0]: ieee80211_scan_completed Get the 'scan to off', but scanning still loops as far as I can tell. 5 minutes later I got this: (not in log) May 2 14:07:51 adam-notebook kernel[0]: ieee80211_bssid_match @ /Users/Adam/Desktop/root/compatibility.cpp:1416 May 2 14:07:51 adam-notebook kernel[0]: ieee80211_invoke_rx_handlers @ /Users/Adam/Desktop/root/compatibility.cpp:1065 May 2 14:07:51 adam-notebook kernel[0]: __ieee80211_invoke_rx_handlers @ /Users/Adam/Desktop/root/compatibility.cpp:1035 May 2 14:07:51 adam-notebook kernel[0]: ieee80211_rx_h_if_stats @ /Users/Adam/Desktop/root/compatibility.cpp:4338 May 2 14:07:51 adam-notebook kernel[0]: ieee80211_rx_h_monitor @ /Users/Adam/Desktop/root/compatibility.cpp:4346 May 2 14:07:51 adam-notebook kernel[0]: ieee80211_rx_h_passive_scan @ /Users/Adam/Desktop/root/compatibility.cpp:4353 May 2 14:07:51 adam-notebook kernel[0]: ieee80211_sta_rx_scan @ /Users/Adam/Desktop/root/compatibility.cpp:3477 May 2 14:07:51 adam-notebook kernel[0]: ieee80211_rx_mgmt_beacon @ /Users/Adam/Desktop/root/compatibility.cpp:3430 May 2 14:07:51 adam-notebook kernel[0]: ieee80211_rx_bss_info @ /Users/Adam/Desktop/root/compatibility.cpp:3061 May 2 14:07:51 adam-notebook kernel[0]: IOPCCard debug: en1: RX Beacon from 00:18:71:5f:13:f6 to ff:ff:ff:ff:ff:ff May 2 14:07:51 adam-notebook kernel[0]: ieee802_11_parse_elems @ /Users/Adam/Desktop/root/compatibility.cpp:2846 May 2 14:07:51 adam-notebook kernel[0]: ieee80211_rx_bss_get @ /Users/Adam/Desktop/root/compatibility.cpp:2958 May 2 14:07:51 adam-notebook kernel[0]: ieee80211_rx_bss_add @ /Users/Adam/Desktop/root/compatibility.cpp:2989 May 2 14:07:51 adam-notebook kernel[0]: __ieee80211_rx_bss_hash_add @ /Users/Adam/Desktop/root/compatibility.cpp:2979 May 2 14:07:51 adam-notebook kernel[0]: ieee80211_rx_bss_put @ /Users/Adam/Desktop/root/compatibility.cpp:3042 May 2 14:07:51 adam-notebook kernel[0]: __ieee80211_rx_bss_hash_del @ /Users/Adam/Desktop/root/compatibility.cpp:3012 May 2 14:07:51 adam-notebook kernel[0]: ieee80211_rx_bss_free @ /Users/Adam/Desktop/root/compatibility.cpp:3032
Attached File(s)
|
|
myself108
InsanelyMac Protégé
|
![]() |
May 2 2008, 09:12 PM Post #1865
|
|
4965 r 929 log
still seems to be looping the scan
Attached File(s)
|
|
jalavoui
InsanelyMac Legend
|
![]() |
May 2 2008, 09:19 PM Post #1866
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
iwl4965_mac_config_interface bssid: 00:18:71:5f:13:f6 need a litle hack on this wait... |
|
nordix
InsanelyMac Geek
|
![]() |
May 2 2008, 09:35 PM Post #1867
|
![]() ![]() ![]()
|
iwi3945 rel 928 -> first time freeze (shot below), then ok, but still have 500ms timeout. How can I make the time for waiting RXON_REPLY larger, more than 500ms? Maybe, 500ms is not enough?
Attached File(s)
|
|
jalavoui
InsanelyMac Legend
|
![]() |
May 2 2008, 09:48 PM Post #1868
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
let's move on
iwi3945 rel 930 iwi4965 rel 931 there's still some things to fix - the driver needs to add the network we want to associate to the stations table you can see that in logs when you get a iwl4965_mac_config_interface nordix, don't mess with the code pere, have you find a fix? looks like the driver works diferent in linux the scans/associate requests are made out of the driver i'm trying to make this work inside iwi3945/4965 - as i've done for iwi2200 so if this works the driver will associate to the first non secure network it finds if i manage to do this i know nobody will complain |
|
pere
InsanelyMac Legend
|
![]() |
May 2 2008, 09:55 PM Post #1869
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I have been playing with the previous version here:
static int iwl3945_send_cmd_sync(struct iwl3945_priv *priv, struct iwl3945_host_cmd *cmd) { int cmd_idx; int ret; static atomic_t entry = ATOMIC_INIT(0); /* reentrance protection */ BUG_ON(cmd->meta.flags & CMD_ASYNC); If i change 0 to 1, the it says there is already a command send... maybe there is one command doenst unqueue?, and that causes the next command dont load? Going to check this version. |
|
myself108
InsanelyMac Protégé
|
![]() |
May 2 2008, 10:00 PM Post #1870
|
|
log for 4965 r931
Shows adding to the stations table
Attached File(s)
|
|
jalavoui
InsanelyMac Legend
|
![]() |
May 2 2008, 10:01 PM Post #1871
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I have been playing with the previous version here: static int iwl3945_send_cmd_sync(struct iwl3945_priv *priv, struct iwl3945_host_cmd *cmd) this is why i disabled the atomic_xchg on previous releases - maybe you can try it iwi4965 iwl4965_add_station_flags Add STA ID 0: 00:1c:f0:40:1c:22 nice - this means station 0 is in the table maybe i can use networkselector to allow user to choose the net to associate meanwhile i'll try a easy hack |
|
adamisnt
InsanelyMac Protégé
|
![]() |
May 2 2008, 10:06 PM Post #1872
|
|
iwi4965 rel 931
First: May 2 14:58:31 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config_interface enter: interface id 592703520 May 2 14:58:31 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config_interface bssid: 00:00:00:00:00:00 May 2 14:58:31 adam-notebook kernel[0]: iwl4965: U iwl4965_commit_rxon Sending RXON May 2 14:58:31 adam-notebook kernel[0]: * without RXON_FILTER_ASSOC_MSK May 2 14:58:31 adam-notebook kernel[0]: * channel = 1 May 2 14:58:31 adam-notebook kernel[0]: * bssid = 00:00:00:00:00:00 Then: May 2 14:59:21 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config_interface enter: interface id 592703520 May 2 14:59:21 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config_interface bssid: 00:18:71:5f:13:f6 May 2 14:59:21 adam-notebook kernel[0]: iwl4965: U iwl4965_commit_rxon Sending RXON May 2 14:59:21 adam-notebook kernel[0]: * without RXON_FILTER_ASSOC_MSK May 2 14:59:21 adam-notebook kernel[0]: * channel = 1 May 2 14:59:21 adam-notebook kernel[0]: * bssid = 00:18:71:5f:13:f6 Finally: May 2 14:59:21 adam-notebook kernel[0]: iwl4965: U iwl4965_add_station_flags Add STA ID 0: 00:18:71:5f:13:f6 May 2 14:59:21 adam-notebook kernel[0]: iwl4965: U iwl4965_enqueue_hcmd Sending command REPLY_ADD_STA (#18), seq: 0x0493, 72 bytes at 147[19]:4 May 2 14:59:21 adam-notebook kernel[0]: iwl4965: U iwl4965_rx_handle r = 168, i = 167, REPLY_ADD_STA, 0x18 May 2 14:59:21 adam-notebook kernel[0]: iwl4965: U iwl4965_rx_reply_add_sta Received REPLY_ADD_STA: 0x01 May 2 14:59:21 adam-notebook kernel[0]: iwl4965: U iwl4965_send_cmd_sync Wait REPLY_ADD_STA Condition: 49ms left May 2 14:59:21 adam-notebook kernel[0]: iwl4965: U iwl4965_send_add_station REPLY_ADD_STA PASSED May 2 14:59:21 adam-notebook kernel[0]: iwl4965: U iwl4965_add_station_flags Add STA ID 0: 00:18:71:5f:13:f6 It looks like it is looping adding the station
Attached File(s)
|
|
nordix
InsanelyMac Geek
|
![]() |
May 2 2008, 10:10 PM Post #1873
|
![]() ![]() ![]()
|
iwi3945 rel 930, first time - freeze, then norm, but still timeout
Attached File(s)
|
|
x4hu
InsanelyMac Geek
|
![]() |
May 2 2008, 10:20 PM Post #1874
|
![]() ![]()
|
you're getting awesome logs, this driver is almost working thats like 80% i would say.. great work jalavoui **clap**
|
|
pere
InsanelyMac Legend
|
![]() |
May 2 2008, 10:27 PM Post #1875
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Iwi 3945 rel 930
I have manage to start the card without the rx on timeout changing iosleep here: if ( pmPCICapPtr ) { fPCIDevice->saveDeviceState(); fPCIDevice->configWrite16( kPCIPMCSR, 0x8000 ); IOSleep(100); // wait for internal reset completion fPCIDevice->restoreDeviceState(); Before was 10. But now i dont see on my log what i saw in the last 3 versions.... Nordix, try it and post log. So we can compare if the hack is correct.
Attached File(s)
|
|
adamisnt
InsanelyMac Protégé
|
![]() |
May 2 2008, 10:31 PM Post #1876
|
|
|
|
nordix
InsanelyMac Geek
|
![]() |
May 2 2008, 10:55 PM Post #1877
|
![]() ![]() ![]()
|
|
|
jalavoui
InsanelyMac Legend
|
![]() |
May 2 2008, 10:58 PM Post #1878
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
pere,
that is not the problem the bug is in sending commands in your logs you can make the scan call but after it finishes it doesn't send the config commands if you fix this everything else will work tip to try: ret = HOST_COMPLETE_TIMEOUT/10; while(test_bit(STATUS_HCMD_ACTIVE, &priv->status)) { IOSleep(10); i've add a hack in code for assoc search in xcode for hacking associate stabssid= and you'll find the code try to fix if it doesn't work be back tomorrow iwi3945 rel 932 iwi4965 rel 933 |
|
adamisnt
InsanelyMac Protégé
|
![]() |
May 2 2008, 11:03 PM Post #1879
|
|
iwi4965 rel 933
Mixed results: May 2 15:56:16 adam-notebook kernel[0]: error iwl4965: Error sending REPLY_RXON: time out after 500ms. May 2 15:56:16 adam-notebook kernel[0]: error iwl4965: Error setting new configuration (-60). May 2 15:56:16 adam-notebook kernel[0]: error iwl4965: ERROR: No TX rate available. May 2 15:56:37 adam-notebook kernel[0]: iwl4965: U iwl4965_tx_skb Sending REASSOC frame May 2 15:56:37 adam-notebook kernel[0]: iwl4965: U iwl4965_tx_skb station Id 31 May 2 15:56:37 adam-notebook kernel[0]: ieee80211_get_morefrag @ /Users/Adam/Desktop/root/compatibility.cpp:1023 May 2 15:56:37: --- last message repeated 1 time --- May 2 15:56:37 adam-notebook kernel[0]: IOPCCard debug: iwl data: 0: 2e 00 00 00 00 20 00 00 00 00 00 00 0a 42 00 00 ..... .......B.. May 2 15:56:37 adam-notebook kernel[0]: IOPCCard debug: iwl data: 10: 1f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ May 2 15:56:37 adam-notebook kernel[0]: IOPCCard debug: iwl data: 20: 00 00 00 00 00 00 00 00 ff ff ff ff 18 50 ab 05 .............P.. May 2 15:56:37 adam-notebook kernel[0]: IOPCCard debug: iwl data: 30: 00 3c 0f 00 03 00 00 00 .<...... May 2 15:56:37 adam-notebook kernel[0]: IOPCCard debug: iwl data: 0: 20 20 20 20 20 20 20 31 39 36 20 5b 54 69 6d 65 196 [Time May 2 15:56:37 adam-notebook kernel[0]: IOPCCard debug: iwl data: 10: 45 00 00 30 2f 82 40 00 E..0/.@. May 2 15:56:37 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_tx leave May 2 15:56:37 adam-notebook kernel[0]: iwl4965: U iwl4965_mac_config_interface leave See ya, jalavoui. Nice work today
Attached File(s)
|
|
jalavoui
InsanelyMac Legend
|
![]() |
May 2 2008, 11:09 PM Post #1880
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
iwi4965
the bug is in iwl4965_tx_skb station Id 31 i add code to associate to station id 0 try to replace this sta_id=iwl4965_hw_find_station(priv, sdata->u.sta.bssid); with sta_id=iwl4965_hw_find_station(priv, &sdata->u.sta.bssid); |
![]() |
|
Lo-Fi Version | Time is now: 21st November 2009 - 11:06 PM |