<<. it's either the wi-fi hardware or driver issue. >>
Your conclusion is NOT supported by the many posts here on this issue.
When you choose Wi-FI, you are choosing to use Shared radio signals over-the air through a network neighborhood that may contain devices creating interference, or neighbors' routers competing directly with your signals. The radio signal Strength falls off as the cube of the distance to the Router, and building materials (walls, ceilings, windows) cause additional losses. Solid masonry construction like thick brick chimneys, cause very large losses.
By far the majority of the issues are caused by conditions in your 'network neighborhood' and need to be examined on a case-by-case basis.
Actual Wi-Fi Hardware issues are extremely rare, and mostly tend to be caused by disconnected antenna leads after service.
Configuration issues are few. Driver issues encountered to date are essentially none.
--------
One other under-appreciated point: When you change what version of Wi-Fi is in use, such as by upgrading to a Mac with more advanced Wi-Fi capabilities, your data can present a larger over-the-air 'footprint' and subject the same data to more interference from other devices, both Routers and interference generators.