WifiInfo.getLinkSpeed will give you the maximum speed of your current wifi network. Your actual wifi speed will be below this value, depending on how far you are to the access point, obstacles, interferences, ... This is your speed within your wifi network. If you access a device within your network, the transfer will be the minumum between your speed and the other device speed.
If you access the internet, then your wifi network is connected to internet and your speed will depend on the technology used (ADSL, cable, 4G, satellite,...) and the capacity of your internet provider (who is at the other side of your connection). Both values usually changein time, as they depend on usage patterns (number of concurrent users, network capacity,..)
Also bear in mind that, when connected to internet, you make requests to another device (most of the times to a server). The transfer speed you get will be the minimum between your speed & the one for the server you are contacting.
All in all, there are too many unkown elements to predict your internet speed.
However you can always calculate it, just make some requests, measure how many Kbytes (or Megabytes) you get, calculate how long it has taken and divide one by the other. This will be your current speed for that particular connection.
If you want more stable/trustable values, you should repeat this operation a number of times, and use the average. This is what speed tester (www.speedtest.net, testmy.net, ...) services do.