LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-03-2017, 04:05 AM   #1
anon007
LQ Newbie
 
Registered: Jul 2017
Posts: 7

Rep: Reputation: Disabled
Post patch for the linux kernel 4.13-rc3 IEEE80211_TX_CTL_REQ_TX_STATUS IEEE80211_TX_INTFL_MLME_CONN_TX


http://marc.info/?l=linux-kernel&m=150171508027356

Code:
tibaldi@debian910:~/Desktop/linux-4.13-rc3/net/mac80211$ file mlme.c
mlme.c: C source, ASCII text
tibaldi@debian910:~/Desktop/linux-4.13-rc3/net/mac80211$

    my proposed patch for the 4.13-rc3 kernel is the following - Amos 
Tibaldi www.amostibaldi.it

static int ieee80211_auth(struct ieee80211_sub_if_data *sdata)
{
     struct ieee80211_local *local = sdata->local;
     struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
     struct ieee80211_mgd_auth_data *auth_data = ifmgd->auth_data;
     u32 tx_flags = 0;
     u16 trans = 1;
     u16 status = 0;

     sdata_assert_lock(sdata);

     if (WARN_ON_ONCE(!auth_data))
             return -EINVAL;

     auth_data->tries++;

     if(auth_data->tries > IEEE80211_AUTH_MAX_TRIES) {
         sdata_info(sdata, "authentication with %pM timed out\n",
                    auth_data->bss->bssid);
                    /*
                     * Most likely AP is not in the range so remove the
                     * bss struct for that AP.
                     */
                    cfg80211_unlink_bss(local->hw.wiphy, auth_data->bss);

                    return -ETIMEDOUT;
     }

     drv_mgd_prepare_tx(local, sdata);

     sdata_info(sdata, "send auth to %pM (try %d/%d)\n",
                auth_data->bss->bssid, auth_data->tries,
                IEEE80211_AUTH_MAX_TRIES);

     auth_data->expected_transaction = 2;

     if (auth_data->algorithm == WLAN_AUTH_SAE) {
         trans = auth_data->sae_trans;
         status = auth_data->sae_status;
         auth_data->expected_transaction = trans;
     }

     if (ieee80211_hw_check(&local->hw, REPORTS_TX_ACK_STATUS))
             tx_flags = IEEE80211_TX_CTL_REQ_TX_STATUS | 
(IEEE80211_TX_INTFL_MLME_CONN_TX &&
(!(IEEE80211_TX_CTL_REQ_TX_STATUS)));

     ieee80211_send_auth(sdata, trans, auth_data->algorithm, status,
                         auth_data->data, auth_data->data_len,
                         auth_data->bss->bssid,
                         auth_data->bss->bssid, NULL, 0, 0,
                         tx_flags);

     if (tx_flags == 0) {
             auth_data->timeout = jiffies + IEEE80211_AUTH_TIMEOUT;
             auth_data->timeout_started = true;
             run_again(sdata, auth_data->timeout);
     } else {
             auth_data->timeout =
                     round_jiffies_up(jiffies + 
IEEE80211_AUTH_TIMEOUT_LONG);
             auth_data->timeout_started = true;
             run_again(sdata, auth_data->timeout);
     }

     return 0;
}

static int ieee80211_do_assoc(struct ieee80211_sub_if_data *sdata)
{
 
Old 08-11-2017, 05:57 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
So, are you going to submit the patch? Posting it on LQ will not get the attention of the kernel team.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux 3.9-rc3 Kernel Brings More Changes LXer Syndicated Linux News 0 03-18-2013 01:10 AM
LXer: Download Linux Kernel 3.3 RC3 Now LXer Syndicated Linux News 0 02-09-2012 06:30 PM
Kernel Panic in 64bit Arch Linux after Kernel Recompile: 2.6.35-rc3 jackerybakery Linux - General 3 06-16-2010 10:21 AM
LXer: Linux: 2.6.23-rc3, Patch Rate Calming Down LXer Syndicated Linux News 0 08-14-2007 10:40 AM
LXer: Linux: Announcing the 2.6.22-rc3 Kernel LXer Syndicated Linux News 2 05-26-2007 10:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration