Ubuntu – Internet keeps failing despite connected wifi on 16.04

16.04internetwireless

I saw similar questions, but unlike stated in other questions, My WiFi does not disconnect. Only the connectivity to Internet keeps dropping.

I have tried at different location (different WiFi), the problem is same.
Any time I just disconnected from Internet (WiFi shows connected to network). After I reboot it works fine. Disconnecting and connecting to WiFi again does not help.

I have other devices (phone and mac) which have no such problem, so I am sure there is nothing wrong with the WiFi router.

EDIT:
As requested here is the command output:

$ lspci -knn | grep Net -A2
02:00.0 Network controller [0280]: Intel Corporation Wireless 3160 [8086:08b4] (rev 93)
    Subsystem: Intel Corporation Dual Band Wireless AC 3160 [8086:8270]
    Kernel driver in use: iwlwifi

Best Answer

Just so that we don't have an unsolved question which is actually solved by this comment by Pilot6

This command seems to work (it worked for me and the original poster):

sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi 11n_disable=1"
Related Question