Giter VIP home page Giter VIP logo

Comments (19)

williambj1 avatar williambj1 commented on June 24, 2024 1

CC @ErrorErrorError

from heliport.

ErrorErrorError avatar ErrorErrorError commented on June 24, 2024 1

I am sorry @ErrorErrorError I think I can't provide what you need. I do not run Xcode, I am on Mojave too. I ran the pre-compiled HeliPort.app from https://github.com/1hbb/OpenIntelWireless-Factory/releases
I am simply a power user not a developer :-( Let me know if I can do anything else to helping you?

As the driver does show the Router and DNS etc. in System Preferences via DHCP (not manually entered) is there no way to see how itlwm works maybe? (just an idea, possibly not even working the same way...)

If you don't mind, can you open terminal and type scutil and press enter. After that, you should see a right arrow symbol,>. I want you to type show State:/Network/Global/IPv4 and let me know if you see any information regarding router IP.

from heliport.

ErrorErrorError avatar ErrorErrorError commented on June 24, 2024 1

a) Write on the main page that users are advised to disable IPv6 via Terminal (as System Preferences drop-down list doesn't contain OFF anymore by default)

Why should they disable IPv6? It's not an issue with IPv6. It's an issue with the primary interface was connected to en0 and not en1. I could remove the checking if the primary interface returns en1, but I am not sure if that is the best way to do it since I also have to consider VPN now.

b) Change the text label "Address" to "MAC Address" on your menu list, just as it's shown in System Preferences -> Network -> Device properties. "Address" prompts to IP, without the word "MAC" (although a n00b may not distinguish IP and xx:xx:xx:xx LOL)

That is a question for @williambj1 since Apple does not do that on their Wi-Fi interface.

from heliport.

mackonsti avatar mackonsti commented on June 24, 2024 1

OK sure, sorry, I thought disabling IPv6 was the culprit here. Let me re-enable and reboot again a couple of times and report back. But as en1 does get a Router, even with en0 active, should we not get it displayed in HeliPort?

As for the "Address" word, fine by me. Who am I to argue with Apple's stylistic choices :-D

from heliport.

Goshin avatar Goshin commented on June 24, 2024 1

@ErrorErrorError seems it only returns the primary network. A workaround I can think of is to parse the routing table.

An example: to get the gateway addr of en1

netstat -rn | egrep -o "default.*en1" | egrep -o "\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"   # ipv4

from heliport.

ErrorErrorError avatar ErrorErrorError commented on June 24, 2024

@mackonsti Do you have any logs that print out on Xcode? I wan't to know if it doesn't find the interface or ip address since it uses SystemConfiguration, which is the recommended API from Apple to find out network state.

from heliport.

mackonsti avatar mackonsti commented on June 24, 2024

I am sorry @ErrorErrorError I think I can't provide what you need. I do not run Xcode, I am on Mojave too. I ran the pre-compiled HeliPort.app from https://github.com/1hbb/OpenIntelWireless-Factory/releases
I am simply a power user not a developer :-( Let me know if I can do anything else to helping you?

As the driver does show the Router and DNS etc. in System Preferences via DHCP (not manually entered) is there no way to see how itlwm works maybe? (just an idea, possibly not even working the same way...)

I would be happy to test a debug-verbose version of HeliPort that you could provide, if you have time, so I can copy-paste the output from Console etc. for your information?

from heliport.

mackonsti avatar mackonsti commented on June 24, 2024

Of course. Here it is. I do get Router value. Had to disable en0 first (the Ethernet controller) and repeated the command once WLAN en1 had connected to my router:

$ scutil
> show State:/Network/Global/IPv4
<dictionary> {
  PrimaryInterface : en0
  PrimaryService : C6D7BE42-DB00-4CE9-8F17-1CC78F9EABA1
  Router : 192.168.1.1
}
> show State:/Network/Global/IPv4
<dictionary> {
  PrimaryInterface : en1
  PrimaryService : 84278F6F-6984-497E-B557-4714EFF85CE0
  Router : 192.168.1.1
}
> quit

from heliport.

ErrorErrorError avatar ErrorErrorError commented on June 24, 2024

Hm, can you check if you see the router address showing in HeliPort? The commands seems to work fine so it should get those same results.

from heliport.

mackonsti avatar mackonsti commented on June 24, 2024

Yes now I can see it!
I think that after turning the Wireless controller OFF then ON, I can see it. Because straight from boot time, it doesn't seem to work (with HeliPort auto-started). Just a hunch. I can reboot soon, to check again. Could this be the case?

WAIT: In the meantime, after posting my original message, I had disabled the device (named "Wireless" in System Preferences) via Terminal IPv6 could this be it?
networksetup -setv6off Wireless
I am rebooting now...

from heliport.

ErrorErrorError avatar ErrorErrorError commented on June 24, 2024

I think that after turning the Wireless controller OFF then ON, I can see it. Because straight from boot time, it doesn't seem to work (with HeliPort auto-started). Just a hunch. I can reboot soon, to check again. Could this be the case?

It returns unknown because the primary interface was not en1, instead it was en0, as from the first time you ran show State:/Network/Global/IPv4 it showed en0 however HeliPort expected en1.

Had to disable en0 first (the Ethernet controller) and repeated the command once WLAN en1 had connected to my router:

This is what fixed your issue since itlwm interface is under en1 and for some reason en0 was the primary connected interface.

from heliport.

mackonsti avatar mackonsti commented on June 24, 2024

OK so after rebooting and with en0 pre-disabled, I do get Router now displayed, with IPv6 disabled too:

Router

Please, a kind request:

a) Write on the main page that users are advised to disable IPv6 via Terminal (as System Preferences drop-down list doesn't contain OFF anymore by default)

b) Change the text label "Address" to "MAC Address" on your menu list, just as it's shown in System Preferences -> Network -> Device properties. "Address" prompts to IP, without the word "MAC" (although a n00b may not distinguish IP and xx:xx:xx:xx LOL)

Not sure if this is solved now? Have you guys been able to run only IPv6 with this driver?

from heliport.

ErrorErrorError avatar ErrorErrorError commented on June 24, 2024

OK sure, sorry, I thought disabling IPv6 was the culprit here. Let me re-enable and reboot again a couple of times and report back. But as en1 does get a Router, even with en0 active, should we not get it displayed in HeliPort?

No worries I see why you say that lol. And technically yes you do get your router IP address, however en0 is not from itlwm, as it shows the itlwm interface name on top of HeliPort, which it why it fails the condition and returns Unknown in HeliPort. Right now I am checking to see if I can just get the router ip for a specific interface regardless if it's primary or not.

from heliport.

mackonsti avatar mackonsti commented on June 24, 2024

Right now I am checking to see if I can just get the router ip for a specific interface regardless if it's primary or not.

Not a bad idea! Hope you come up with something neat and clever!

So I rebooted with en0 disabled and then rebooted as enabled, and despite some system freezing and me being forced to turn off then on again the itlwm driver (when being the only network active device in Mojave) it seems that if en0 is assigned to active Ethernet and itlwm as en1 then HeliPort does indeed get Router=Unknown. I have re-enabled IPv6 for all devices (LAN/WLAN) by the way...

However, I found a couple of other issues, not sure if you want me to create tickets, so I take the opportunity to ask you:

a) If you turn OFF Wi-Fi via HeliPort and back ON, there's no indicator (like that rotating icon, perhaps next to Turn WiFi On label) to indicate you that a scan is being done; the drop-down list is empty. It takes 5 seconds to show nearby SSIDs. Expected behaviour, but the macOS rotating icon would be welcome.

Activity

b) If the itlmw.kext driver's Info.plist contains a valid SSID like the one I insert (due to custom editing it and entering my SSID/password) it seems that this may confuse HeliPort and won't load the last-saved SSID. For example, in Info.plist I set WiFi_1 as my 2.4GHz SSID; but with HeliPort I choose each time (manually) the 5GHz SSID.

Should I delete all <key>WiFiConfig</key> dictionary entries in the kext i.e. WiFi_1 to WiFi_4 keys? Is this expected behaviour of HeliPort? If I don't auto-run-on-login HeliPort and I let the system boot OK, thus having initialised the kext, and then I manually run HeliPort, I do get the last-used SSID to be connected...
Connected
c) If I set itlwm to OFF via HeliPort, and I reboot, it seems that this "OFF" state is not respected without having HeliPort being executed/run; it seems HeliPort-dependent i.e. it doesn't set the device to "inactive" same as in System Preferences. This is expected behaviour?

Thank you! (sorry.... part of my job is IT specs validation at work :-D )

from heliport.

ErrorErrorError avatar ErrorErrorError commented on June 24, 2024

However, I found a couple of other issues, not sure if you want me to create tickets, so I take the opportunity to ask you:

If they are other issues that have not been created I would recommend creating an issue so it can be tracked easier. If it's a feature request, like scanning for networks, pls mark it as feature request or it's corresponding issue,bug, feature request etc...

So I rebooted with en0 disabled and then rebooted as enabled, and despite some system freezing and me being forced to turn off then on again the itlwm driver (when being the only network active device in Mojave) it seems that if en0 is assigned to active Ethernet and itlwm as en1 then HeliPort does indeed get Router=Unknown. I have re-enabled IPv6 for all devices (LAN/WLAN) by the way...

Does en0 have a Network connection and is it being used instead of the Wireless itlwm?

from heliport.

mackonsti avatar mackonsti commented on June 24, 2024

I will create the other tickets, thanks. Of course I will discriminate between request and bug.

Does en0 have a Network connection and is it being used instead of the Wireless itlwm?

Yes it's cable Ethernet plugged in and using IntelMausi.kext by acidanthera.

from heliport.

williambj1 avatar williambj1 commented on June 24, 2024

That's actually quite odd since we get BSD name directly from itlwm's API &drv_info.bsd_name.0

CC @zxystd

from heliport.

ErrorErrorError avatar ErrorErrorError commented on June 24, 2024

That's actually quite odd since we get BSD name directly from itlwm's API &drv_info.bsd_name.0

I mean I don't think it's an issue with itlwm or bsd, I just think that the priority of his system is not on the Wireless, but instead on the ethernet interface. You can have two, or more active network interfaces but only one of them is going to be used, and that is the one who is the one that should prioritize.

The only way I can get the router IP is from the network interface that has the priority since that is where the system is getting the connection from.

Edit: I mean yeah sure I can remove the precondition of BSD however that will mean even if the wifi is not the one that is being used as primary it will still get the router address but from the primary.

guard let interface = dictionary?[kSCDynamicStorePropNetPrimaryInterface] as? String, interface == bsd else {

from heliport.

mackonsti avatar mackonsti commented on June 24, 2024

Yes @ErrorErrorError you are correct, my "service order" (to talk Apple) was Ethernet first:

Service Order

I wasn't aware that two or more active network devices (and with IP, I must stress) despite being both active, only the first would be used. I was under the impression there was some mild load balancing LOL. Merci

from heliport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.