I use Ubuntu as my OS on a Lenovo L440, but am having intermittent issues with the wifi dropping out or failing to connect to a network.
After trying various fixes unsuccessfully I experimented with live booting some other distros to see if any of them would better support my laptop's hardware out of the box, and found that with Kali linux the wifi works perfectly every time.
Kali isn't an appropriate OS to use for my day to day work, so how should I work backwards to compare Kali and Ubuntu and find out which part of the former's networking setup makes my wifi card work?
Ubuntu kernel is 4.10.0-38-generic
Kali kernel is 4.6.0-kali1-amd64
The wireless card is Realtek 8192EE 802.11n, and both distros are using
rtl8192ee driver, although I'm not sure how to check which version.
I have had some improvement by increasing the packet retry threshold on wifi in Ubuntu with
iwconfig wlp2s0 retry 25 (default is 7). That makes me think Kali might be configured with some more aggressive settings in terms of how the wifi tries to connects to the AP.