Commit:     ddd68587d0470498eb161de37b8f9fb5c48786a3
Parent:     31c7cecb616e499dd30703959710aebeee3f9af1
Author:     Johannes Berg <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 22 14:51:37 2007 +0200
Committer:  John W. Linville <[EMAIL PROTECTED]>
CommitDate: Fri Oct 26 00:14:29 2007 -0400

    [PATCH] mac80211: fix printk warning on 64-bit
    My AID message patch introduced a warning on 64-bit machines because ~
    extends to unsigned long:
    | net/mac80211/ieee80211_sta.c: In function ‘ieee80211_rx_mgmt_assoc_resp’:
    | net/mac80211/ieee80211_sta.c:1187: warning: format ‘%d’ expects type 
‘int’, but argument 7 has type ‘long unsigned int’
    This fixes it by explicitly casting the result to u16 (which 'aid' is).
    Signed-off-by: Johannes Berg <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
 net/mac80211/ieee80211_sta.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c
index 77ef223..fda0e06 100644
--- a/net/mac80211/ieee80211_sta.c
+++ b/net/mac80211/ieee80211_sta.c
@@ -1184,7 +1184,7 @@ static void ieee80211_rx_mgmt_assoc_resp(struct 
net_device *dev,
        printk(KERN_DEBUG "%s: RX %sssocResp from %s (capab=0x%x "
               "status=%d aid=%d)\n",
               dev->name, reassoc ? "Rea" : "A", print_mac(mac, mgmt->sa),
-              capab_info, status_code, aid & ~(BIT(15) | BIT(14)));
+              capab_info, status_code, (u16)(aid & ~(BIT(15) | BIT(14))));
        if (status_code != WLAN_STATUS_SUCCESS) {
                printk(KERN_DEBUG "%s: AP denied association (code=%d)\n",
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to