I have just attempted to resolve a similar problem. My issue was that I had spotty wireless using a RTL8192EE wireless card on a fresh install of ubuntu 14.04.
You can see what wireless card you are using by typing "lspci". It will list a bunch of devices. In my case, the relevant entry is:
"...Network controller: Realtek Semiconductor Co., Ltd. RTL8192EE PCIe Wireless Network Adapter"
To better enable other people to help you, it is useful to state what your wireless card is.
The built-in drivers bundled with 14.04 didn't work well for this. The connection was spotty and would drop after a bit. Also there seems to be computer freezing issues when trying to modify it.
A solution that worked for me was to download appropriate drivers -- I haven't yet been using them for very long so I have yet to see how they hold up on a longer timescale. I did this by using the code in:
clone https://github.com/FreedomBen/rtl8188ce-linux-driver
which is valid for multiple realtek cards.
I found this solution from this answer on askubuntu.
Copying the relevant part from that answer here:
sudo apt-get install --reinstall linux-headers-generic linux-headers-$(uname -r) build-essential dkms git
git clone https://github.com/FreedomBen/rtl8188ce-linux-driver
cd rtl8188ce-linux-driver
sudo make
sudo make install
sudo cp -r firmware/* /lib/firmware