I purchased a HP pavillion 15 ab011nx laptop with Windows 8.1 built in.The wifi works perfectly in windows but is really very weak in ubuntu that I can use wifi in lap only when I place lap very near to my modem.I tried to solve the issue with dkms rtl wifi commands shown in the results but still it is not working.Please help me find the correct solution.My ethernet too is not working.The details are as given below
08:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]
DeviceName: Realtek RTL8723BE 802.11b/g/n 1x1Wi-Fi + BT4.0 Combo Adapter
Subsystem: Hewlett-Packard Company Device [103c:804c]
lspci -knn | grep Net -A2
terminal command.ant_sel
setting should fix this.