A very good diagnostic script for network problems of all kind (not only WLAN) can be found here:
collectNWData Überblick / Overview | collectNWData.sh
DL-Link:
http://www.linux-tips-and-tricks.de/...-category.html
It is actively maintained and the author (which I know personally) is always open for suggestions.