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.
Related videos on Youtube
Author by
jmasterx
Updated on September 18, 2022Comments
-
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 over 13 yearsSo 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 over 13 yearsNope, there's no syntax to implicitly bind an instance to a member function.
-
Gustavo Rubio almost 13 yearsActually 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 almost 11 years@Seppo Erviälä: Does
iwconfig
persist settings across reboots? The man page doesn't say.