aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee80211
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2006-01-31 00:25:10 -0500
committerJohn W. Linville <linville@tuxdriver.com>2006-01-31 10:35:46 -0500
commit2f633db5e9c57e07a971b65e9a72f090f59fd5f6 (patch)
tree7349aedafbc9c52630e20beb5d7b8c31052cc037 /net/ieee80211
parentf1b50863aa6a96c61a57e3b3a5e76e67b38c5c3e (diff)
[PATCH] Add two management functions to ieee80211_rx.c
On my system, I get unhandled management functions corresponding to IEEE80211_STYPE_REASSOC_REQ and IEEE80211_STYPE_ASSOC_REQ. The attached patch adds the logic to pass these requests off to a user stack. The patches to implement these requests in softmac have already been sent to Johannes Berg. Signed-Off-By: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/ieee80211')
-rw-r--r--net/ieee80211/ieee80211_rx.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/net/ieee80211/ieee80211_rx.c b/net/ieee80211/ieee80211_rx.c
index c032b82eb56f..fcf4382ef7d7 100644
--- a/net/ieee80211/ieee80211_rx.c
+++ b/net/ieee80211/ieee80211_rx.c
@@ -1607,6 +1607,30 @@ void ieee80211_rx_mgt(struct ieee80211_device *ieee,
1607 header, stats); 1607 header, stats);
1608 break; 1608 break;
1609 1609
1610 case IEEE80211_STYPE_REASSOC_REQ:
1611 IEEE80211_DEBUG_MGMT("received reassoc (%d)\n",
1612 WLAN_FC_GET_STYPE(le16_to_cpu
1613 (header->frame_ctl)));
1614
1615 IEEE80211_WARNING("%s: IEEE80211_REASSOC_REQ received\n",
1616 ieee->dev->name);
1617 if (ieee->handle_reassoc_request != NULL)
1618 ieee->handle_reassoc_request(ieee->dev,
1619 (struct ieee80211_reassoc_request *)
1620 header);
1621 break;
1622
1623 case IEEE80211_STYPE_ASSOC_REQ:
1624 IEEE80211_DEBUG_MGMT("received assoc (%d)\n",
1625 WLAN_FC_GET_STYPE(le16_to_cpu
1626 (header->frame_ctl)));
1627
1628 IEEE80211_WARNING("%s: IEEE80211_ASSOC_REQ received\n",
1629 ieee->dev->name);
1630 if (ieee->handle_assoc_request != NULL)
1631 ieee->handle_assoc_request(ieee->dev);
1632 break;
1633
1610 case IEEE80211_STYPE_DEAUTH: 1634 case IEEE80211_STYPE_DEAUTH:
1611 IEEE80211_DEBUG_MGMT("DEAUTH\n"); 1635 IEEE80211_DEBUG_MGMT("DEAUTH\n");
1612 if (ieee->handle_deauth != NULL) 1636 if (ieee->handle_deauth != NULL)