~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to net/mac80211/work.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
                mod_timer(&local->work_timer, timeout);
66
66
}
67
67
 
68
 
static void work_free_rcu(struct rcu_head *head)
69
 
{
70
 
        struct ieee80211_work *wk =
71
 
                container_of(head, struct ieee80211_work, rcu_head);
72
 
 
73
 
        kfree(wk);
74
 
}
75
 
 
76
68
void free_work(struct ieee80211_work *wk)
77
69
{
78
 
        call_rcu(&wk->rcu_head, work_free_rcu);
 
70
        kfree_rcu(wk, rcu_head);
79
71
}
80
72
 
81
73
static int ieee80211_compatible_rates(const u8 *supp_rates, int supp_rates_len,
198
190
        struct sk_buff *skb;
199
191
        struct ieee80211_mgmt *mgmt;
200
192
        u8 *pos, qos_info;
201
 
        const u8 *ies;
202
193
        size_t offset = 0, noffset;
203
 
        int i, len, count, rates_len, supp_rates_len;
 
194
        int i, count, rates_len, supp_rates_len;
204
195
        u16 capab;
205
196
        struct ieee80211_supported_band *sband;
206
197
        u32 rates = 0;
285
276
        }
286
277
 
287
278
        /* SSID */
288
 
        ies = pos = skb_put(skb, 2 + wk->assoc.ssid_len);
 
279
        pos = skb_put(skb, 2 + wk->assoc.ssid_len);
289
280
        *pos++ = WLAN_EID_SSID;
290
281
        *pos++ = wk->assoc.ssid_len;
291
282
        memcpy(pos, wk->assoc.ssid, wk->assoc.ssid_len);
295
286
        if (supp_rates_len > 8)
296
287
                supp_rates_len = 8;
297
288
 
298
 
        len = sband->n_bitrates;
299
289
        pos = skb_put(skb, supp_rates_len + 2);
300
290
        *pos++ = WLAN_EID_SUPP_RATES;
301
291
        *pos++ = supp_rates_len;