This question already has an answer here:
This is one of the solutions provided to solve the wi fi dropping issue. I don't know how to create this config file.
Here is the solution that asks to create this file: 16.04 LTS wifi connection lost randomly every 5 minutes
Thanks in advance.