Why won't Wi-Fi and hotspot work on my Samsung Galaxy J7 Prime?

My Samsung mobile j7 prime wifi and hotspot not working from before several weeks.but when I restart my phone both are working for several minutes.after that repeated..so I am kindly requested to fixed android software update 

Did you install any app before that started happening? Also, have you ever dropped the phone?

Not the answer you were looking for?