I have ubuntu 12.04 LTS on a HP ENVY 4-1070el
Wifi works if the laptop is within a 1-2m from the router, then it starts working very slowly and at 6-7m it disconnects.
When I installed 12.04 lts for the first time (in january) I didn't have this problem, I had to reinstall ubuntu again a few weeks ago and now the wifi doesn't work (maybe the problem is caused by an update?).

I tried this fix and this fix .

The Broadcom STA wireless driver (found in 'additional hardware') is disabled, if I activate it wifi doesn't work at all, not even close to the router.

Any help would be really appreciated. Thanks!

Code:
rfkill list all0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
1: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
2: hp-wifi: Wireless LAN
    Soft blocked: no
    Hard blocked: no
3: hp-bluetooth: Bluetooth
    Soft blocked: no
    Hard blocked: no
Code:
lspci
00:00.0 Host bridge: Intel Corporation Ivy Bridge DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Ivy Bridge Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation Panther Point USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation Panther Point MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation Panther Point USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation Panther Point High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 2 (rev c4)
00:1d.0 USB controller: Intel Corporation Panther Point USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Panther Point LPC Controller (rev 04)
00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 04)
00:1f.3 SMBus: Intel Corporation Panther Point SMBus Controller (rev 04)
01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5289 (rev 01)
01:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 0a)
02:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)
Code:
lsusb
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 003: ID 1bcf:0007 Sunplus Innovation Technology Inc. Optical Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 1bcf:2c0e Sunplus Innovation Technology Inc. 
Bus 001 Device 004: ID 0a5c:21e3 Broadcom Corp.
Code:
lspci -nn |grep 'Broadcom Corp'
02:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller [14e4:4727] (rev 01)
Code:
nm-tool

NetworkManager Tool

State: connected (global)

- Device: wlan0  [Alice-35651846] ----------------------------------------------
  Type:              802.11 WiFi
  Driver:            brcmsmac
  State:             connected
  Default:           yes
  HW Address:        E0:06:E6:08:42:CA

  Capabilities:
    Speed:           24 Mb/s

  Wireless Properties
    WEP Encryption:  yes
    WPA Encryption:  yes
    WPA2 Encryption: yes

  Wireless Access Points (* = current AP)
    *Alice-35651846: Infra, 5C:33:8E:0B:C3:06, Freq 2412 MHz, Rate 54 Mb/s, Strength 41 WPA WPA2

  IPv4 Settings:
    Address:         192.168.1.7
    Prefix:          24 (255.255.255.0)
    Gateway:         192.168.1.1

    DNS:             192.168.1.1


- Device: eth0 -----------------------------------------------------------------
  Type:              Wired
  Driver:            r8169
  State:             unavailable
  Default:           no
  HW Address:        AC:16:2D:4D:88:B9

  Capabilities:
    Carrier Detect:  yes

  Wired Properties
    Carrier:         off
Code:
ifconfig
eth0      Link encap:Ethernet  IndirizzoHW ac:16:2d:4d:88:b9  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisioni:0 txqueuelen:1000 
          Byte RX:0 (0.0 B)  Byte TX:0 (0.0 B)

lo        Link encap:Loopback locale  
          indirizzo inet:127.0.0.1  Maschera:255.0.0.0
          indirizzo inet6: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:431 errors:0 dropped:0 overruns:0 frame:0
          TX packets:431 errors:0 dropped:0 overruns:0 carrier:0
          collisioni:0 txqueuelen:0 
          Byte RX:40242 (40.2 KB)  Byte TX:40242 (40.2 KB)

wlan0     Link encap:Ethernet  IndirizzoHW e0:06:e6:08:42:ca  
          indirizzo inet:192.168.1.7  Bcast:192.168.1.255  Maschera:255.255.255.0
          indirizzo inet6: fe80::e206:e6ff:fe08:42ca/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2612 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2160 errors:0 dropped:0 overruns:0 carrier:0
          collisioni:0 txqueuelen:1000 
          Byte RX:2507585 (2.5 MB)  Byte TX:343802 (343.8 KB)
Code:
iwconfig
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"Alice-35651846"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 5C:33:8E:0B:C3:06   
          Bit Rate=48 Mb/s   Tx-Power=19 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=32/70  Signal level=-78 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:84   Missed beacon:0
Code:
lsmod
Module                  Size  Used by
snd_hda_codec_hdmi     32476  1 
snd_hda_codec_idt      70774  1 
parport_pc             32867  0 
ppdev                  17114  0 
rfcomm                 47562  12 
bnep                   18240  2 
binfmt_misc            17541  1 
arc4                   12530  2 
brcmsmac              541775  0 
mac80211              555272  1 brcmsmac
brcmutil               14756  1 brcmsmac
coretemp               13642  0 
kvm                   422160  0 
ghash_clmulni_intel    13221  0 
aesni_intel            51134  1 
cryptd                 20531  2 ghash_clmulni_intel,aesni_intel
aes_x86_64             17256  1 aesni_intel
cfg80211              208382  2 brcmsmac,mac80211
cordic                 12575  1 brcmsmac
hp_wmi                 18093  0 
sparse_keymap          13891  1 hp_wmi
snd_hda_intel          34063  3 
snd_hda_codec         135141  3 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_intel
snd_hwdep              17765  1 snd_hda_codec
snd_pcm                97523  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
dm_multipath           23306  0 
scsi_dh                14589  1 dm_multipath
bcma                   35762  1 brcmsmac
snd_seq_midi           13325  0 
snd_rawmidi            30750  1 snd_seq_midi
btusb                  22432  0 
bluetooth             211812  24 rfcomm,bnep,btusb
snd_seq_midi_event     14900  1 snd_seq_midi
snd_seq                61931  2 snd_seq_midi,snd_seq_midi_event
uvcvideo               78117  0 
videobuf2_core         33025  1 uvcvideo
videodev              125126  2 uvcvideo,videobuf2_core
videobuf2_vmalloc      12861  1 uvcvideo
videobuf2_memops       13405  1 videobuf2_vmalloc
microcode              23030  0 
snd_timer              29990  2 snd_pcm,snd_seq
snd_seq_device         14498  3 snd_seq_midi,snd_rawmidi,snd_seq
joydev                 17694  0 
psmouse               102506  0 
serio_raw              13216  0 
snd                    83674  16 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
lpc_ich                17145  0 
i915                  535221  2 
drm_kms_helper         49259  1 i915
soundcore              15092  1 snd
snd_page_alloc         18573  2 snd_hda_intel,snd_pcm
rtsx_pci_ms            13181  0 
memstick               16606  1 rtsx_pci_ms
mei                    41410  0 
drm                   290059  3 i915,drm_kms_helper
i2c_algo_bit           13565  1 i915
wmi                    19257  1 hp_wmi
video                  19653  1 i915
hp_accel               25977  0 
lis3lv02d              19878  1 hp_accel
input_polldev          13897  1 lis3lv02d
mac_hid                13254  0 
lp                     17800  0 
parport                46563  3 parport_pc,ppdev,lp
hid_generic            12541  0 
usbhid                 47259  0 
hid                   100815  2 hid_generic,usbhid
rtsx_pci_sdmmc         17801  0 
rtsx_pci               33680  2 rtsx_pci_ms,rtsx_pci_sdmmc
ahci                   25869  2 
libahci                27338  1 ahci
r8169                  62705  0 
dm_raid45              78156  0 
xor                    17153  1 dm_raid45
dm_mirror              22204  0 
dm_region_hash         20962  1 dm_mirror
dm_log                 18565  3 dm_raid45,dm_mirror,dm_region_hash
Code:
uname -mr
3.5.0-34-generic x86_64