staging: wlan-ng: aligned block to open parenthesis
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v2 1/13 staging: wlan-ng: aligned block to open parenthesis
Fixed multiple checkpatch warnings by aligning blocks to match open parenthesis.
--- drivers/staging/wlan-ng/prism2sta.c | 80 ++++++++++++++++++------------------- 1 file changed, 40 insertions(+), 40 deletions(-)
drivers/staging/wlan-ng/prism2sta.c +40 -40
@@ -606,8 +606,8 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev) hw->ident_nic.minor =le16_to_cpu (hw->ident_nic.minor);netdev_info (wlandev->netdev,"ident: nic h/w: id=0x%02x %d.%d.%d\n" , - hw->ident_nic.id, hw->ident_nic.major, - hw->ident_nic.minor, hw->ident_nic.variant); + hw->ident_nic.id, hw->ident_nic.major, + hw->ident_nic.minor, hw->ident_nic.variant);/* Primary f/w identity */ result = hfa384x_drvr_getconfig(hw, HFA384x_RID_PRIIDENTITY,
@@ -625,8 +625,8 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev) hw->ident_pri_fw.minor =le16_to_cpu (hw->ident_pri_fw.minor);netdev_info (wlandev->netdev,"ident: pri f/w: id=0x%02x %d.%d.%d\n" , - hw->ident_pri_fw.id, hw->ident_pri_fw.major, - hw->ident_pri_fw.minor, hw->ident_pri_fw.variant); + hw->ident_pri_fw.id, hw->ident_pri_fw.major, + hw->ident_pri_fw.minor, hw->ident_pri_fw.variant);/* Station (Secondary?) f/w identity */ result = hfa384x_drvr_getconfig(hw, HFA384x_RID_STAIDENTITY,
@@ -639,7 +639,7 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev)if (hw->ident_nic.id <0x8000 ) {netdev_err (wlandev->netdev, -"FATAL: Card is not an Intersil Prism2/2.5/3\n" ); +"FATAL: Card is not an Intersil Prism2/2.5/3\n" ); result =-1 ; goto failed; }
@@ -656,14 +656,14 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev)if (hw->ident_sta_fw.id ==0x1f ) {netdev_info (wlandev->netdev, -"ident: sta f/w: id=0x%02x %d.%d.%d\n" , - hw->ident_sta_fw.id, hw->ident_sta_fw.major, - hw->ident_sta_fw.minor, hw->ident_sta_fw.variant); +"ident: sta f/w: id=0x%02x %d.%d.%d\n" , + hw->ident_sta_fw.id, hw->ident_sta_fw.major, + hw->ident_sta_fw.minor, hw->ident_sta_fw.variant); }else {netdev_info (wlandev->netdev, -"ident: ap f/w: id=0x%02x %d.%d.%d\n" , - hw->ident_sta_fw.id, hw->ident_sta_fw.major, - hw->ident_sta_fw.minor, hw->ident_sta_fw.variant); +"ident: ap f/w: id=0x%02x %d.%d.%d\n" , + hw->ident_sta_fw.id, hw->ident_sta_fw.major, + hw->ident_sta_fw.minor, hw->ident_sta_fw.variant);netdev_err (wlandev->netdev,"Unsupported Tertiary AP firmware loaded!\n" ); goto failed; }
@@ -687,10 +687,10 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev) hw->cap_sup_mfi.top =le16_to_cpu (hw->cap_sup_mfi.top);netdev_info (wlandev->netdev, -"MFI:SUP:role=0x%02x:id=0x%02x:var=0x%02x:b/t=%d/%d\n" , - hw->cap_sup_mfi.role, hw->cap_sup_mfi.id, - hw->cap_sup_mfi.variant, hw->cap_sup_mfi.bottom, - hw->cap_sup_mfi.top); +"MFI:SUP:role=0x%02x:id=0x%02x:var=0x%02x:b/t=%d/%d\n" , + hw->cap_sup_mfi.role, hw->cap_sup_mfi.id, + hw->cap_sup_mfi.variant, hw->cap_sup_mfi.bottom, + hw->cap_sup_mfi.top);/* Compatibility range, Controller supplier */ result = hfa384x_drvr_getconfig(hw, HFA384x_RID_CFISUPRANGE,
@@ -711,10 +711,10 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev) hw->cap_sup_cfi.top =le16_to_cpu (hw->cap_sup_cfi.top);netdev_info (wlandev->netdev, -"CFI:SUP:role=0x%02x:id=0x%02x:var=0x%02x:b/t=%d/%d\n" , - hw->cap_sup_cfi.role, hw->cap_sup_cfi.id, - hw->cap_sup_cfi.variant, hw->cap_sup_cfi.bottom, - hw->cap_sup_cfi.top); +"CFI:SUP:role=0x%02x:id=0x%02x:var=0x%02x:b/t=%d/%d\n" , + hw->cap_sup_cfi.role, hw->cap_sup_cfi.id, + hw->cap_sup_cfi.variant, hw->cap_sup_cfi.bottom, + hw->cap_sup_cfi.top);/* Compatibility range, Primary f/w supplier */ result = hfa384x_drvr_getconfig(hw, HFA384x_RID_PRISUPRANGE,
@@ -735,10 +735,10 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev) hw->cap_sup_pri.top =le16_to_cpu (hw->cap_sup_pri.top);netdev_info (wlandev->netdev, -"PRI:SUP:role=0x%02x:id=0x%02x:var=0x%02x:b/t=%d/%d\n" , - hw->cap_sup_pri.role, hw->cap_sup_pri.id, - hw->cap_sup_pri.variant, hw->cap_sup_pri.bottom, - hw->cap_sup_pri.top); +"PRI:SUP:role=0x%02x:id=0x%02x:var=0x%02x:b/t=%d/%d\n" , + hw->cap_sup_pri.role, hw->cap_sup_pri.id, + hw->cap_sup_pri.variant, hw->cap_sup_pri.bottom, + hw->cap_sup_pri.top);/* Compatibility range, Station f/w supplier */ result = hfa384x_drvr_getconfig(hw, HFA384x_RID_STASUPRANGE,
@@ -791,10 +791,10 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev) hw->cap_act_pri_cfi.top =le16_to_cpu (hw->cap_act_pri_cfi.top);netdev_info (wlandev->netdev, -"PRI-CFI:ACT:role=0x%02x:id=0x%02x:var=0x%02x:b/t=%d/%d\n" , - hw->cap_act_pri_cfi.role, hw->cap_act_pri_cfi.id, - hw->cap_act_pri_cfi.variant, hw->cap_act_pri_cfi.bottom, - hw->cap_act_pri_cfi.top); +"PRI-CFI:ACT:role=0x%02x:id=0x%02x:var=0x%02x:b/t=%d/%d\n" , + hw->cap_act_pri_cfi.role, hw->cap_act_pri_cfi.id, + hw->cap_act_pri_cfi.variant, hw->cap_act_pri_cfi.bottom, + hw->cap_act_pri_cfi.top);/* Compatibility range, sta f/w actor, CFI supplier */ result = hfa384x_drvr_getconfig(hw, HFA384x_RID_STA_CFIACTRANGES,
@@ -815,10 +815,10 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev) hw->cap_act_sta_cfi.top =le16_to_cpu (hw->cap_act_sta_cfi.top);netdev_info (wlandev->netdev, -"STA-CFI:ACT:role=0x%02x:id=0x%02x:var=0x%02x:b/t=%d/%d\n" , - hw->cap_act_sta_cfi.role, hw->cap_act_sta_cfi.id, - hw->cap_act_sta_cfi.variant, hw->cap_act_sta_cfi.bottom, - hw->cap_act_sta_cfi.top); +"STA-CFI:ACT:role=0x%02x:id=0x%02x:var=0x%02x:b/t=%d/%d\n" , + hw->cap_act_sta_cfi.role, hw->cap_act_sta_cfi.id, + hw->cap_act_sta_cfi.variant, hw->cap_act_sta_cfi.bottom, + hw->cap_act_sta_cfi.top);/* Compatibility range, sta f/w actor, MFI supplier */ result = hfa384x_drvr_getconfig(hw, HFA384x_RID_STA_MFIACTRANGES,
@@ -839,10 +839,10 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev) hw->cap_act_sta_mfi.top =le16_to_cpu (hw->cap_act_sta_mfi.top);netdev_info (wlandev->netdev, -"STA-MFI:ACT:role=0x%02x:id=0x%02x:var=0x%02x:b/t=%d/%d\n" , - hw->cap_act_sta_mfi.role, hw->cap_act_sta_mfi.id, - hw->cap_act_sta_mfi.variant, hw->cap_act_sta_mfi.bottom, - hw->cap_act_sta_mfi.top); +"STA-MFI:ACT:role=0x%02x:id=0x%02x:var=0x%02x:b/t=%d/%d\n" , + hw->cap_act_sta_mfi.role, hw->cap_act_sta_mfi.id, + hw->cap_act_sta_mfi.variant, hw->cap_act_sta_mfi.bottom, + hw->cap_act_sta_mfi.top);/* Serial Number */ result = hfa384x_drvr_getconfig(hw, HFA384x_RID_NICSERIALNUMBER,
@@ -920,7 +920,7 @@ static int prism2sta_globalsetup(struct wlandevice *wlandev) }static int prism2sta_setmulticast (struct wlandevice *wlandev, -struct net_device *dev) +struct net_device *dev) {int result =0 ;struct hfa384x *hw = wlandev->priv;
@@ -1064,7 +1064,7 @@ static void prism2sta_inf_scanresults(struct wlandevice *wlandev, &joinreq, HFA384x_RID_JOINREQUEST_LEN);if (result) {netdev_err (wlandev->netdev,"setconfig(joinreq) failed, result=%d\n" , - result); + result); } }
@@ -1294,7 +1294,7 @@ void prism2sta_processing_defer(struct work_struct *data)*/ if (wlandev->netdev->type ==ARPHRD_ETHER )netdev_info (wlandev->netdev, -"linkstatus=DISCONNECTED (unhandled)\n" ); +"linkstatus=DISCONNECTED (unhandled)\n" ); wlandev->macmode =WLAN_MACMODE_NONE ;netif_carrier_off (wlandev->netdev);
@@ -1415,7 +1415,7 @@ void prism2sta_processing_defer(struct work_struct *data)default :/* This is bad, IO port problems? */ netdev_warn (wlandev->netdev, -"unknown linkstatus=0x%02x\n" , hw->link_status); +"unknown linkstatus=0x%02x\n" , hw->link_status);return ; }
@@ -1785,7 +1785,7 @@ void prism2sta_ev_info(struct wlandevice *wlandev, struct hfa384x_InfFrame *inf)break ;default :netdev_warn (wlandev->netdev, -"Unknown info type=0x%02x\n" , inf->infotype); +"Unknown info type=0x%02x\n" , inf->infotype);break ; } }
Signature · 1 line
2.10.0
PATCH v2 2/13 staging: wlan-ng: fixed lines over 80 characters
In reply to a message not in the archiveBreaks lines over 80 characters that were causing checkpatch issues.
--- drivers/staging/wlan-ng/prism2sta.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/prism2sta.c +6 -3
@@ -104,7 +104,8 @@ static void prism2sta_reset(struct wlandevice *wlandev);static int prism2sta_txframe (struct wlandevice *wlandev,struct sk_buff *skb,union p80211_hdr *p80211_hdr,struct p80211_metawep *p80211_wep); -static int prism2sta_mlmerequest (struct wlandevice *wlandev,struct p80211msg *msg); +static int prism2sta_mlmerequest (struct wlandevice *wlandev, +struct p80211msg *msg);static int prism2sta_getcardinfo (struct wlandevice *wlandev);static int prism2sta_globalsetup (struct wlandevice *wlandev); static int prism2sta_setmulticast(struct wlandevice *wlandev,
@@ -278,7 +279,8 @@ static int prism2sta_txframe(struct wlandevice *wlandev, struct sk_buff *skb,* Call context: * process thread */ -static int prism2sta_mlmerequest (struct wlandevice *wlandev,struct p80211msg *msg) +static int prism2sta_mlmerequest (struct wlandevice *wlandev, +struct p80211msg *msg) {struct hfa384x *hw = wlandev->priv;
@@ -1099,7 +1101,8 @@ static void prism2sta_inf_hostscanresults(struct wlandevice *wlandev,kfree (hw->scanresults); - hw->scanresults =kmemdup (inf,sizeof (struct hfa384x_InfFrame ),GFP_ATOMIC ); + hw->scanresults =kmemdup (inf,sizeof (struct hfa384x_InfFrame ), +GFP_ATOMIC );if (nbss ==0 ) nbss =-1 ;
Signature · 1 line
2.10.0
PATCH v2 3/13 staging: wlan-ng: renames hfa384x_InfFrame to avoid camelcase
In reply to a message not in the archiveRenames hfa384x_InfFrame to hfa384x_inf_frame in order to fix a checkpatch error caused by camelcase.
--- drivers/staging/wlan-ng/hfa384x.h | 6 ++--- drivers/staging/wlan-ng/prism2mgmt.h | 3 ++- drivers/staging/wlan-ng/prism2sta.c | 49 ++++++++++++++++++------------------ 3 files changed, 30 insertions(+), 28 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -774,7 +774,7 @@ union hfa384x_infodata {struct hfa384x_KeyIDChanged keyidchanged; } __packed; -struct hfa384x_InfFrame { +struct hfa384x_inf_frame {u16 framelen;u16 infotype;union hfa384x_infodata info;
@@ -862,7 +862,7 @@ struct hfa384x_usb_rxfrm {struct hfa384x_usb_infofrm {u16 type; -struct hfa384x_InfFrame info; +struct hfa384x_inf_frame info; } __packed;struct hfa384x_usb_statusresp {
@@ -1370,7 +1370,7 @@ struct hfa384x {struct hfa384x_ChInfoResult results; } channel_info; -struct hfa384x_InfFrame *scanresults; +struct hfa384x_inf_frame *scanresults;struct prism2sta_authlist authlist;/* Authenticated station list. */ unsigned int accessmode;/* Access mode. */
drivers/staging/wlan-ng/prism2mgmt.h +2 -1
@@ -65,7 +65,8 @@ extern int prism2_reset_settletime;u32 prism2sta_ifstate (struct wlandevice *wlandev,u32 ifstate); -void prism2sta_ev_info (struct wlandevice *wlandev,struct hfa384x_InfFrame *inf); +void prism2sta_ev_info (struct wlandevice *wlandev, +struct hfa384x_inf_frame *inf);void prism2sta_ev_txexc (struct wlandevice *wlandev,u16 status);void prism2sta_ev_tx (struct wlandevice *wlandev,u16 status);void prism2sta_ev_alloc (struct wlandevice *wlandev);
drivers/staging/wlan-ng/prism2sta.c +25 -24
144 lines not on this page · raw message
Signature · 1 line
2.10.0
PATCH v2 4/13 staging: wlan-ng: renames hfa384x_CommTallies32 to avoid camelcase
In reply to a message not in the archiveFixes a checkpatch warning by renaming the camelcased struct hfa384x_CommTallies32 to hfa384x_comm_tallies_32.
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- drivers/staging/wlan-ng/prism2sta.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -634,7 +634,7 @@ struct hfa384x_CommTallies16 {u16 rxmsginbadmsgfrag; } __packed; -struct hfa384x_CommTallies32 { +struct hfa384x_comm_tallies_32 {u32 txunicastframes;u32 txmulticastframes;u32 txfragments;
@@ -763,7 +763,7 @@ struct hfa384x_KeyIDChanged {/*-- Collection of all Inf frames ---------------*/ union hfa384x_infodata {struct hfa384x_CommTallies16 commtallies16; -struct hfa384x_CommTallies32 commtallies32; +struct hfa384x_comm_tallies_32 commtallies32;struct hfa384x_ScanResult scanresult;struct hfa384x_ChInfoResult chinforesult;struct hfa384x_HScanResult hscanresult;
@@ -1360,7 +1360,7 @@ struct hfa384x {struct hfa384x_caplevel cap_act_ap_mfi;/* ap f/w to modem interface */ u32 psusercount;/* Power save user count. */ -struct hfa384x_CommTallies32 tallies;/* Communication tallies. */ +struct hfa384x_comm_tallies_32 tallies;/* Communication tallies. */ u8 comment[WLAN_COMMENT_MAX +1 ];/* User comment */ /* Channel Info request results (AP only) */
drivers/staging/wlan-ng/prism2sta.c +1 -1
@@ -1001,7 +1001,7 @@ static void prism2sta_inf_tallies(struct wlandevice *wlandev,* record length of the info record. */ - cnt =sizeof (struct hfa384x_CommTallies32 ) /sizeof (u32); + cnt =sizeof (struct hfa384x_comm_tallies_32 ) /sizeof (u32);if (inf->framelen >22 ) { dst = (u32 *)&hw->tallies; src32 = (u32 *)&inf->info.commtallies32;
Signature · 1 line
2.10.0
PATCH v2 5/13 staging: wlan-ng: renames hfa384x_ScanResult to avoid camelcase
In reply to a message not in the archiveRenames the camelcased struct hfa384x_ScanResult to hfa384x_scan_result in order to fix a checkpatch warning.
--- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- drivers/staging/wlan-ng/prism2sta.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
@@ -671,7 +671,7 @@ struct hfa384x_ScanResultSub {u16 proberesp_rate; } __packed; -struct hfa384x_ScanResult { +struct hfa384x_scan_result {u16 rsvd;u16 scanreason;struct hfa384x_ScanResultSub result[HFA384x_SCANRESULT_MAX];
@@ -764,7 +764,7 @@ struct hfa384x_KeyIDChanged {union hfa384x_infodata {struct hfa384x_CommTallies16 commtallies16;struct hfa384x_comm_tallies_32 commtallies32; -struct hfa384x_ScanResult scanresult; +struct hfa384x_scan_result scanresult;struct hfa384x_ChInfoResult chinforesult;struct hfa384x_HScanResult hscanresult;struct hfa384x_LinkStatus linkstatus;
drivers/staging/wlan-ng/prism2sta.c +1 -1
@@ -1037,7 +1037,7 @@ static void prism2sta_inf_scanresults(struct wlandevice *wlandev, {struct hfa384x *hw = wlandev->priv;int nbss; -struct hfa384x_ScanResult *sr = &(inf->info.scanresult); +struct hfa384x_scan_result *sr = &inf->info.scanresult;int i;struct hfa384x_JoinRequest_data joinreq;int result;
Signature · 1 line
2.10.0
PATCH v2 6/13 staging: wlan-ng: renames hfa384x_JoinRequest_data to avoid camelcase
In reply to a message not in the archiveRenames the camelcased struct hfa384x_JoinRequest_data to hfa384x_join_request_data in order to fix a checkpatch warning.
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- drivers/staging/wlan-ng/prism2sta.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -266,7 +266,7 @@#define HFA384x_RID_DBMCOMMSQUALITY_LEN \ ((u16)sizeof(struct hfa384x_dbmcommsquality))#define HFA384x_RID_JOINREQUEST_LEN \ - ((u16)sizeof(struct hfa384x_JoinRequest_data)) + ((u16)sizeof(struct hfa384x_join_request_data))/*-------------------------------------------------------------------- * Information RIDs: Modem Information
@@ -415,7 +415,7 @@ struct hfa384x_HostScanRequest_data { } __packed;/*-- Configuration Record: JoinRequest (data portion only) --*/ -struct hfa384x_JoinRequest_data { +struct hfa384x_join_request_data {u8 bssid[WLAN_BSSID_LEN ];u16 channel; } __packed;
@@ -1294,7 +1294,7 @@ struct hfa384x {int scanflag;/* to signal scan complete */ int join_ap;/* are we joined to a specific ap */ int join_retries;/* number of join retries till we fail */ -struct hfa384x_JoinRequest_data joinreq;/* join request saved data */ +struct hfa384x_join_request_data joinreq;/* join request saved data */ struct wlandevice *wlandev;/* Timer to allow for the deferred processing of linkstatus messages */
drivers/staging/wlan-ng/prism2sta.c +2 -2
@@ -1039,7 +1039,7 @@ static void prism2sta_inf_scanresults(struct wlandevice *wlandev,int nbss;struct hfa384x_scan_result *sr = &inf->info.scanresult;int i; -struct hfa384x_JoinRequest_data joinreq; +struct hfa384x_join_request_data joinreq;int result;/* Get the number of results, first in bytes, then in results */
@@ -1394,7 +1394,7 @@ void prism2sta_processing_defer(struct work_struct *data)* Disable Transmits, Ignore receives of data frames */ if (hw->join_ap && --hw->join_retries >0 ) { -struct hfa384x_JoinRequest_data joinreq; +struct hfa384x_join_request_data joinreq; joinreq = hw->joinreq;/* Send the join request */
Signature · 1 line
2.10.0
PATCH v2 7/13 staging: wlan-ng: renames hfa384x_scanResultSub to avoid camelcase
In reply to a message not in the archiveRenames the camelcased struct hfa384x_scanResultSub to hfa384x_scan_result_sub in order to fix a checkpatch warning.
--- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- drivers/staging/wlan-ng/prism2sta.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
@@ -659,7 +659,7 @@ struct hfa384x_comm_tallies_32 { } __packed;/*-- Inquiry Frame, Diagnose: Scan Results & Subfields--*/ -struct hfa384x_ScanResultSub { +struct hfa384x_scan_result_sub {u16 chid;u16 anl;u16 sl;
@@ -674,7 +674,7 @@ struct hfa384x_ScanResultSub {struct hfa384x_scan_result {u16 rsvd;u16 scanreason; -struct hfa384x_ScanResultSub result[HFA384x_SCANRESULT_MAX]; +struct hfa384x_scan_result_sub result[HFA384x_SCANRESULT_MAX]; } __packed;/*-- Inquiry Frame, Diagnose: ChInfo Results & Subfields--*/
drivers/staging/wlan-ng/prism2sta.c +1 -1
@@ -1045,7 +1045,7 @@ static void prism2sta_inf_scanresults(struct wlandevice *wlandev,/* Get the number of results, first in bytes, then in results */ nbss = (inf->framelen *sizeof (u16)) -sizeof (inf->infotype) -sizeof (inf->info.scanresult.scanreason); - nbss /=sizeof (struct hfa384x_ScanResultSub ); + nbss /=sizeof (struct hfa384x_scan_result_sub );/* Print em */ pr_debug("rx scanresults, reason=%d, nbss=%d:\n",
Signature · 1 line
2.10.0
PATCH v2 8/13 staging: wlan-ng: renames hfa384x_ChInfoResultSub to avoid camelcase
In reply to a message not in the archiveRenames the camelcased struct hfa384x_ChInfoResultSub to hfa384x_ch_info_result_sub in order to fix a checkpatch warning.
--- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- drivers/staging/wlan-ng/prism2sta.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
@@ -678,7 +678,7 @@ struct hfa384x_scan_result { } __packed;/*-- Inquiry Frame, Diagnose: ChInfo Results & Subfields--*/ -struct hfa384x_ChInfoResultSub { +struct hfa384x_ch_info_result_sub {u16 chid;u16 anl;u16 pnl;
@@ -690,7 +690,7 @@ struct hfa384x_ChInfoResultSub {struct hfa384x_ChInfoResult {u16 scanchannels; -struct hfa384x_ChInfoResultSub result[HFA384x_CHINFORESULT_MAX]; +struct hfa384x_ch_info_result_sub result[HFA384x_CHINFORESULT_MAX]; } __packed;/*-- Inquiry Frame, Diagnose: Host Scan Results & Subfields--*/
drivers/staging/wlan-ng/prism2sta.c +2 -2
@@ -1139,8 +1139,8 @@ static void prism2sta_inf_chinforesults(struct wlandevice *wlandev,le16_to_cpu (inf->info.chinforesult.scanchannels);for (i =0 , n =0 ; i < HFA384x_CHINFORESULT_MAX; i++) { -struct hfa384x_ChInfoResultSub *result; -struct hfa384x_ChInfoResultSub *chinforesult; +struct hfa384x_ch_info_result_sub *result; +struct hfa384x_ch_info_result_sub *chinforesult;int chan;if (!(hw->channel_info.results.scanchannels & (1 << i)))
Signature · 1 line
2.10.0
PATCH v2 9/13 staging: wlan-ng: renames hfa384x_AssocStatus to avoid camelcase
In reply to a message not in the archiveRenames the camelcased struct hfa384x_AssocStatus to hfa384x_assoc_status in order to fix a checkpatch warning.
--- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- drivers/staging/wlan-ng/prism2sta.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
@@ -733,7 +733,7 @@ struct hfa384x_LinkStatus {#define HFA384x_ASSOCSTATUS_REASSOC ((u16)2)#define HFA384x_ASSOCSTATUS_AUTHFAIL ((u16)5) -struct hfa384x_AssocStatus { +struct hfa384x_assoc_status {u16 assocstatus;u8 sta_addr[ETH_ALEN ];/* old_ap_addr is only valid if assocstatus == 2 */
@@ -768,7 +768,7 @@ union hfa384x_infodata {struct hfa384x_ChInfoResult chinforesult;struct hfa384x_HScanResult hscanresult;struct hfa384x_LinkStatus linkstatus; -struct hfa384x_AssocStatus assocstatus; +struct hfa384x_assoc_status assocstatus;struct hfa384x_AuthRequest authreq;struct hfa384x_PSUserCount psusercnt;struct hfa384x_KeyIDChanged keyidchanged;
drivers/staging/wlan-ng/prism2sta.c +1 -1
@@ -1474,7 +1474,7 @@ static void prism2sta_inf_assocstatus(struct wlandevice *wlandev, struct hfa384x_inf_frame *inf) {struct hfa384x *hw = wlandev->priv; -struct hfa384x_AssocStatus rec; +struct hfa384x_assoc_status rec;int i;memcpy (&rec, &inf->info.assocstatus,sizeof (rec));
Signature · 1 line
2.10.0
PATCH v2 10/13 staging: wlan-ng: renames hfa384x_authenticateStation_data to avoid camelcase
In reply to a message not in the archiveRenames the camelcased struct hfa384x_authenticateStation_data to hfa384x_authenticate_station_data in order to fix a checkpatch warning.
--- drivers/staging/wlan-ng/hfa384x.h | 2 +- drivers/staging/wlan-ng/prism2sta.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +1 -1
@@ -421,7 +421,7 @@ struct hfa384x_join_request_data { } __packed;/*-- Configuration Record: authenticateStation (data portion only) --*/ -struct hfa384x_authenticateStation_data { +struct hfa384x_authenticate_station_data {u8 address[ETH_ALEN ];u16 status;u16 algorithm;
drivers/staging/wlan-ng/prism2sta.c +1 -1
@@ -1550,7 +1550,7 @@ static void prism2sta_inf_authreq_defer(struct wlandevice *wlandev, struct hfa384x_inf_frame *inf) {struct hfa384x *hw = wlandev->priv; -struct hfa384x_authenticateStation_data rec; +struct hfa384x_authenticate_station_data rec;int i, added, result, cnt;u8 *addr;
Signature · 1 line
2.10.0
PATCH v2 11/13 staging: wlan-ng: renames CQ_currBSS to avoid camelcase
In reply to a message not in the archiveRenames the camelcased variable CQ_currBSS to cq_curr_bss in order to fix a checkpatch warning.
--- drivers/staging/wlan-ng/hfa384x.h | 2 +- drivers/staging/wlan-ng/prism2sta.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +1 -1
@@ -455,7 +455,7 @@ struct hfa384x_downloadbuffer {/*-- Information Record: commsquality --*/ struct hfa384x_commsquality { -u16 CQ_currBSS; +u16 cq_curr_bss;u16 ASL_currBSS;u16 ANL_currFC; } __packed;
drivers/staging/wlan-ng/prism2sta.c +2 -2
@@ -372,7 +372,7 @@ static int prism2sta_mlmerequest(struct wlandevice *wlandev, qualmsg->noise.status = P80211ENUM_msgitem_status_data_ok; - qualmsg->link.data =le16_to_cpu (hw->qual.CQ_currBSS); + qualmsg->link.data =le16_to_cpu (hw->qual.cq_curr_bss); qualmsg->level.data =le16_to_cpu (hw->qual.ASL_currBSS); qualmsg->noise.data =le16_to_cpu (hw->qual.ANL_currFC); qualmsg->txrate.data = hw->txrate;
@@ -1947,7 +1947,7 @@ void prism2sta_commsqual_defer(struct work_struct *data) }pr_debug ("commsqual %d %d %d\n" , -le16_to_cpu (hw->qual.CQ_currBSS), +le16_to_cpu (hw->qual.cq_curr_bss),le16_to_cpu (hw->qual.ASL_currBSS),le16_to_cpu (hw->qual.ANL_currFC)); }
Signature · 1 line
2.10.0
PATCH v2 12/13 staging: wlan-ng: renames ASL_currBSS to avoid camelcase
In reply to a message not in the archiveRenames the camelcased variable ASL_currBSS to asl_curr_bss in order to fix a checkpatch warning.
--- drivers/staging/wlan-ng/hfa384x.h | 2 +- drivers/staging/wlan-ng/prism2sta.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +1 -1
@@ -456,7 +456,7 @@ struct hfa384x_downloadbuffer {/*-- Information Record: commsquality --*/ struct hfa384x_commsquality {u16 cq_curr_bss; -u16 ASL_currBSS; +u16 asl_curr_bss;u16 ANL_currFC; } __packed;
drivers/staging/wlan-ng/prism2sta.c +3 -2
@@ -373,7 +373,8 @@ static int prism2sta_mlmerequest(struct wlandevice *wlandev, P80211ENUM_msgitem_status_data_ok; qualmsg->link.data =le16_to_cpu (hw->qual.cq_curr_bss); - qualmsg->level.data =le16_to_cpu (hw->qual.ASL_currBSS); + qualmsg->level.data = +le16_to_cpu (hw->qual.asl_curr_bss); qualmsg->noise.data =le16_to_cpu (hw->qual.ANL_currFC); qualmsg->txrate.data = hw->txrate;
@@ -1948,7 +1949,7 @@ void prism2sta_commsqual_defer(struct work_struct *data)pr_debug ("commsqual %d %d %d\n" ,le16_to_cpu (hw->qual.cq_curr_bss), -le16_to_cpu (hw->qual.ASL_currBSS), +le16_to_cpu (hw->qual.asl_curr_bss),le16_to_cpu (hw->qual.ANL_currFC)); }
Signature · 1 line
2.10.0
PATCH v2 13/13 staging: wlan-ng: renames ANL_currFC to avoid camelcase
In reply to a message not in the archiveRenames the camelcased variable ANL_currFC to anl_curr_fc in order to fix a checkpatch warning.
--- drivers/staging/wlan-ng/hfa384x.h | 2 +- drivers/staging/wlan-ng/prism2sta.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +1 -1
@@ -457,7 +457,7 @@ struct hfa384x_downloadbuffer {struct hfa384x_commsquality {u16 cq_curr_bss;u16 asl_curr_bss; -u16 ANL_currFC; +u16 anl_curr_fc; } __packed;/*-- Information Record: dmbcommsquality --*/
drivers/staging/wlan-ng/prism2sta.c +2 -2
@@ -375,7 +375,7 @@ static int prism2sta_mlmerequest(struct wlandevice *wlandev, qualmsg->link.data =le16_to_cpu (hw->qual.cq_curr_bss); qualmsg->level.data =le16_to_cpu (hw->qual.asl_curr_bss); - qualmsg->noise.data =le16_to_cpu (hw->qual.ANL_currFC); + qualmsg->noise.data =le16_to_cpu (hw->qual.anl_curr_fc); qualmsg->txrate.data = hw->txrate;break ;
@@ -1950,7 +1950,7 @@ void prism2sta_commsqual_defer(struct work_struct *data)pr_debug ("commsqual %d %d %d\n" ,le16_to_cpu (hw->qual.cq_curr_bss),le16_to_cpu (hw->qual.asl_curr_bss), -le16_to_cpu (hw->qual.ANL_currFC)); +le16_to_cpu (hw->qual.anl_curr_fc)); }/* Get the signal rate */
Signature · 1 line
2.10.0