Skip to content

Conversation

@Geramy
Copy link
Contributor

@Geramy Geramy commented Nov 9, 2018

this fixes both issue #3 and issue #4

for sloweer systems I have changed the ATH10K_HTC_WAIT_TIMEOUT_MSEC to 2 seconds instead.
Instead i'll implement a system that unloads the firmware when the capabilities don't come in correctly and the firmware load crashes. kldload and unload should not have to deal with internal driver issues.
…e up to 6 times.

add code to force the driver to attempt to retry to load the interface up to 6 times. This should fix kldload issues, as long as the wifi card will work during boot we can automate bringing up the interface in scripts. Thats our first goal.
stopping hif and restarting hif if htc wait target doesnt finish succesfully.
trying to reset the atheros chip to to load up properly on error.
sleep a little to let the device catch up and be ready.
I decided to use pause_sig in the case a signal called us to release before we end sleeping.
need to stop the core its not being called on error. I also have set bmi.done_sent = false.
turned the probe retry in to functional code and added a retry limit to core.h called ATH10K_FW_PROBE_RETRYS
added a function to the process that allows us to cleanup any memory leaks if there are any.
pause_sig isn't being used anywhere else and pause_sig is a delay based function which does not put the thread in the sleep queue so I switched it to tsleep instead.
Grammer correction and add a null check for fwlog locking mutext variable as well as adding a longer timeout for htc connect.
used wrong case for null, woops so use to the many other programming languages with lowercase null.
added mutext checking inside of if_athp_fwlog for some reason its still trying to log on an unitialized mutex, which means somewhere something is still initialized for the first firmware failed load, need to check this out in detail, its weird.
removing annoying warnings that come out of my serial device, so i cant see or type anything.
Geramy added 17 commits November 5, 2018 21:30
Initialize commit on trying to move the hostap buffer allocation to the athp_parent instead of the add interface section.
wrong type was used.
remove extra pointers.
moved functions in the right order.
removed call to deallocate inside of allocate and the label.
ath10k_htt_rx_ring_refill does a dma allocate so no other lock can be held during this processor that can't be slept, I found that wmi_tx_beacons was holding the conf lock so I created a wait for that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant