Results 1 to 2 of 2

Thread: BT5 R3 RT2870 driver fails to hold country and txpower on WPA

  1. #1
    Just burned his ISO
    Join Date
    Oct 2012
    Posts
    2

    Default BT5 R3 RT2870 driver fails to hold country and txpower on WPA

    Hi,

    I have a problem with the default IEE driver in BT5 R3 for a Rokland n3 (RT2870/RT3070).

    If I want to use the 750mW output I can perform:

    iw reg set BO
    iwconfig wlan0 txpower 28

    iwconfig wlan0 then reports txpower 28. All ok.

    Now when I associate with a WPA network using wpa_supplicant and the wext drivers, magically something resets my region to ES when WPA comes up, as confirmed by dmesg

    I've tried adding a country line in my wpa_supplicant.conf but that doesn't seem to have any effect..
    Code:
    country=BO
    network={
            ssid="wLAN SSID"
            #psk="the ASCII PSK"
            psk=thecalculatedPSKhash
    }
    Any ideas? Unfortunately trying iw reg set BO to change region, and reissuing iwconfig txpower after WPA is up doesn't work.

    Any other drivers I should try?

    dmesg output
    Code:
    [68689.319563] cfg80211: All devices are disconnected, going to restore regulatory settings
    [68689.319570] cfg80211: Restoring regulatory settings while preserving user preference for: BO
    [68689.319574] cfg80211: Calling CRDA to update world regulatory domain
    [68689.330207] cfg80211: Updating information on frequency 2412 MHz for a 20 MHz width channel with regulatory rule:
    [68689.330401] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    ...<snip>...
    [68689.330460] cfg80211: World regulatory domain updated:
    [68689.330462] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [68689.330464] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [68689.330466] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [68689.330468] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [68689.330470] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [68689.330472] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [68689.331842] cfg80211: Calling CRDA for country: BO
    [68689.346073] cfg80211: Updating information on frequency 2412 MHz for a 20 MHz width channel with regulatory rule:
    [68689.346077] cfg80211: 2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
    ...<snip>...
    [68689.346130] cfg80211: Disabling freq 2484 MHz
    [68689.346132] cfg80211: Regulatory domain changed to country: BO
    [68689.346133] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [68689.346135] cfg80211:     (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 3000 mBm)
    [68689.346137] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (N/A, 3000 mBm)
    [68690.727639] wlan0: authenticate with <BSSID of AP> (try 1)
    [68690.728572] wlan0: authenticated
    [68690.728590] wlan0: associate with <BSSID of AP> (try 1)
    [68690.733044] wlan0: RX AssocResp from <BSSID of AP> (capab=0xc31 status=0 aid=1)
    [68690.733048] wlan0: associated
    [68690.797334] cfg80211: Calling CRDA for country: ES
    [68690.806937] cfg80211: Updating information on frequency 2412 MHz for a 20 MHz width channel with regulatory rule:
    [68690.806940] cfg80211: 2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
    [68690.806943] cfg80211: Updating information on frequency 2417 MHz for a 20 MHz width channel with regulatory rule:
    [68690.806945] cfg80211: 2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
    ...<snip>...
    [68690.806997] cfg80211: Regulatory domain changed to country: ES
    [68690.806998] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [68690.807000] cfg80211:     (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
    [68690.807002] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
    [68690.807004] cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
    [68690.807006] cfg80211:     (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)

  2. #2
    Just burned his ISO
    Join Date
    Oct 2012
    Posts
    2

    Default Re: BT5 R3 RT2870 driver fails to hold country and txpower on WPA

    In case anyone else is experiencing the same issue I figured this out, with a little helping hand from the IRC crowd.

    I'm associating with an AP that's broadcasting regdomain, hence the linux kernel is calling crda to update my country & region to that broadcast from the AP.
    Any subsequent attempts to change region while associated can only further restrict the criteria already set. When I disconnect from the AP wpa_supplicant sets my regdomain back to my selected value.

    The kernel only receives the regdomain country code from the AP. It then relies on crda and regulatory.bin (wireless-regdb) to tell it what restrictions to apply.

    If you make any changes to the relevant country code section in wireless-regdb (db.txt) you can compile a new regulatory.bin, though you'll then also need to recompile a new version of crda that includes a public key from your regulatory.bin compilation as crda requires the signature of regulatory.bin to be validated. BE CAREFUL THAT ANY CHANGES YOU MAKE DO NOT CONTRAVENE LOCAL LAWS.

    As always google is your friend..

Similar Threads

  1. Replies: 1
    Last Post: 07-19-2011, 06:15 PM
  2. Replies: 0
    Last Post: 06-08-2011, 01:58 PM
  3. Replies: 0
    Last Post: 06-08-2011, 08:53 AM
  4. How do I install RT2870 driver?
    By wr123 in forum OLD Newbie Area
    Replies: 2
    Last Post: 12-23-2009, 03:39 AM
  5. rt2870 driver help
    By tanago in forum OLD BackTrack 4 General Support
    Replies: 7
    Last Post: 12-17-2009, 10:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •