How to disable "N" Wireless Mode RTL8192on a Thinkpad Edge 15 Core i5

1,007

You can force your card to use specific wireless standard if the driver supports it with:

sudo iwconfig wlan0 modu 11g

Where wlan0 is your wireless interface and 11g the standard you want (802.11g in this case) .

Hopefully you won't be seeing:

SET failed on device wlan0 ; Operation not supported.
Share:
1,007

Related videos on Youtube

jmasterx
Author by

jmasterx

Updated on September 18, 2022

Comments

  • jmasterx
    jmasterx over 1 year

    I have a templated class like this:

    template <typename T>
    class AguiEvent {
    
    
    std::vector<std::tr1::function<void(T, AguiWidget*)>> events;
    public:
    void call(AguiWidget* sender, T arg) const;
    void addHandler(std::tr1::function<void(T, AguiWidget*)> proc);
    void removeHandler(std::tr1::function<void(T, AguiWidget*)> proc);
    void removeHandler();
    AguiEvent();
    };
    
    template <typename T>
    void AguiEvent<T>::removeHandler()
    {
        if(events.size() > 0)
        {
            events.pop_back();
        }
    }
    
    
    template <typename T>
    void AguiEvent<T>::addHandler( std::tr1::function<void(T, AguiWidget*)> proc)
    {
        events.push_back(proc);
    }
    
    
    template <typename T>
    void AguiEvent<T>::removeHandler(std::tr1::function<void(T, AguiWidget*)> proc)
    {
        for(int i = 0; i < events.size(); ++i)
        {
            if(events[i] == proc)
            {
                events.erase(events.begin() + i);
                return;
            }
        }
    }
    
    
    template <typename T>
    void AguiEvent<T>::call(AguiWidget* sender, T arg) const
    {
        for(size_t i = 0; i < events.size(); ++i)
            events[i](arg,sender);
    }
    
    template <typename T>
    AguiEvent<T>::AguiEvent()
    {
    }
    

    However using it like this:

    testWidget[count]->eventMouseClick.addHandler(&testWidget[0]->silly);
    

    causes this error:

    Error   5   error C2276: '&' : illegal operation on bound member function expression    c:\users\josh\documents\visual studio 2008\projects\agui\alleg_5\main.cpp   190
    

    I thought std::function allowed this. What am I doing wrong?

    Thanks

  • jmasterx
    jmasterx over 13 years
    So there is no way for me to do the dirty work internally so that all the user has to do is to do &testWidget[0]->silly?
  • Steve M
    Steve M over 13 years
    Nope, there's no syntax to implicitly bind an instance to a member function.
  • Gustavo Rubio
    Gustavo Rubio almost 13 years
    Actually what I did was to disable the default driver, download the one from the realtek website and suddenly everything works ok, but thanks for the tip :)
  • Mechanical snail
    Mechanical snail almost 11 years
    @Seppo Erviälä: Does iwconfig persist settings across reboots? The man page doesn't say.