Commit d79cbed5 authored by Javier Achirica's avatar Javier Achirica Committed by Jeff Garzik

[netdrvr airo] Fix adhoc config

parent e6eb8d81
...@@ -1203,13 +1203,13 @@ static int writeConfigRid(struct airo_info*ai, int lock) { ...@@ -1203,13 +1203,13 @@ static int writeConfigRid(struct airo_info*ai, int lock) {
ai->need_commit = 0; ai->need_commit = 0;
checkThrottle(ai); checkThrottle(ai);
cfgr = ai->config;
if ((cfgr.opmode & 0xFF) == MODE_STA_IBSS) if ((cfgr.opmode & 0xFF) == MODE_STA_IBSS)
ai->flags |= FLAG_ADHOC; ai->flags |= FLAG_ADHOC;
else else
ai->flags &= ~FLAG_ADHOC; ai->flags &= ~FLAG_ADHOC;
cfgr = ai->config;
for(s = &cfgr.len; s <= &cfgr.rtsThres; s++) *s = cpu_to_le16(*s); for(s = &cfgr.len; s <= &cfgr.rtsThres; s++) *s = cpu_to_le16(*s);
for(s = &cfgr.shortRetryLimit; s <= &cfgr.radioType; s++) for(s = &cfgr.shortRetryLimit; s <= &cfgr.radioType; s++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment