How does the Windows Task Manager compute the link speed for each network adapter?

Solution 1:

Windows does not calculate anything really. The wifi protocol(s) have a feature called 'Dynamic Rate Switching'. It is this negotiation feature that is responsible for what you are seeing. What exactly happens during this negotiation stage depends on many factors, much like Mokubai pointed out in the comments.